|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheEntry
A CacheEntry is a struct object that holds the cache id and value, as well as metadata for caching. The information in these variables is obtained from the EntryInfo object used when the entry was cached.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
This overrides the method in Object. |
void |
finish()
Call the finish() method when you no longer need this CacheEntry. |
java.util.Enumeration |
getAliasList()
This gets the alias list. |
long |
getCacheValueSize()
This determines the best-effort size of the cache entry's value. |
java.util.Enumeration |
getDataIds()
This gets all ids (cache ids and data ids) that this entry depends on for invalidation. |
byte[] |
getDisplayValue()
This gets the entry's value in a displayable format. |
long |
getExpirationTime()
This gets the absolute time when the entry should expire. |
java.lang.String |
getId()
This gets the unique identifier of this cached entry. |
int |
getPriority()
This gets the priority of this cache entry, which determines how long the entry will stay in cache when it is not being used. |
int |
getSharingPolicy()
This gets the sharing policy of this entry. |
java.util.Enumeration |
getTemplates()
This gets all templates that this entry depends on for invalidation. |
int |
getTimeLimit()
This gets the maximum interval of time in seconds that the entry is allowed to stay in the cache. |
long |
getTimeStamp()
This implements the method in the InvalidationEvent interface. |
java.lang.Object |
getUserMetaData()
Get's the user metadata |
java.lang.Object |
getValue()
This gets the entry's value. |
int |
hashCode()
This overrides the method in Object. |
boolean |
isBatchEnabled()
In a multi-JVM environment, this indicates whether updates to the cache entry (when using EntryInfo.SHARED_PUSH) will be written out immediately or in a batched, asynchronous fashion. |
void |
refreshEntry()
This mimics a cache Hit, refreshing an entries spot in the replacement algorithm. |
java.lang.String |
toString()
This converts the cache entry to a string. |
Method Detail |
---|
java.util.Enumeration getTemplates()
java.util.Enumeration getDataIds()
long getTimeStamp()
boolean equals(java.lang.Object object)
equals
in class java.lang.Object
int hashCode()
hashCode
in class java.lang.Object
int getTimeLimit()
long getExpirationTime()
int getPriority()
int getSharingPolicy()
boolean isBatchEnabled()
java.lang.String getId()
java.lang.Object getValue()
byte[] getDisplayValue()
void refreshEntry()
java.util.Enumeration getAliasList()
java.lang.Object getUserMetaData()
void finish()
long getCacheValueSize()
java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |