|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsspi.cache.CacheEntry
public class 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.
Field Summary | |
---|---|
CacheEntry |
cacheEntry
|
Constructor Summary | |
---|---|
CacheEntry(CacheEntry ce)
Constructor for wrapping the cache entry which is used by Cache Monitor. |
Method Summary | |
---|---|
int |
getCacheType()
Returns the type of CacheEntry (CACHE_TYPE_DEFAULT or CACHE_TYPE_JAXRPC) ALL implementors of this method other than Dynacache should return CACHE_TYPE_DEFAULT for this method. |
long |
getCacheValueSize()
Returns the best-effort size of the cache entry's value. |
java.util.Enumeration |
getDataIds()
Returns all IDs (cache IDs and data IDs) that this entry depends on for invalidation. |
byte[] |
getDisplayValue()
Returns the entry's value in a displayable format. |
long |
getExpirationTime()
Returns the absolute time when the entry should expire. |
java.lang.String |
getExternalCacheGroupId()
Returns the name this the cache entry belongs too. |
java.lang.String |
getId()
Returns the unique identifier of this cached entry. |
int |
getPriority()
Returns the priority of this cache entry, which determines how long the entry will stay in cache when it is not being used. |
int |
getSharingPolicy()
Returns the sharing policy of this entry. |
java.util.Enumeration |
getTemplates()
Returns all templates that this entry depends on for invalidation. |
int |
getTimeLimit()
Returns the maximum interval of time in seconds that the entry is allowed to stay in the cache. |
long |
getTimeStamp()
Returns the creation time of this entry. |
boolean |
isBatchEnabled()
Deprecated. The updates for Push or Push-Pull sharing policies are always done in an asynchronous batch mode. It always returns true. |
void |
refreshEntry()
This mimics a cache Hit, refreshing an entries spot in the replacement algorithm. |
java.lang.String |
toString()
Returns the string representation of cache entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public CacheEntry cacheEntry
Constructor Detail |
---|
public CacheEntry(CacheEntry ce)
ce
- Cache entry instanceMethod Detail |
---|
public int getCacheType()
public java.util.Enumeration getTemplates()
public java.util.Enumeration getDataIds()
public int getTimeLimit()
public long getExpirationTime()
public long getTimeStamp()
public int getPriority()
public int getSharingPolicy()
public boolean isBatchEnabled()
public java.lang.String getId()
public byte[] getDisplayValue()
public void refreshEntry()
public long getCacheValueSize()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getExternalCacheGroupId()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |