|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the underlying cache mechanism that is used by the JSP/Servlet cache. It contains the methods used to inspect and manage the current state of the cache.
Method Summary | |
void |
clear()
This method clears everything from the Cache, so that it is just like when it was instantiated. |
java.util.Enumeration |
getAllIds()
This method returns the cache ids for all cache entries. |
int |
getDefaultPriority()
Get the default priority value as set in the Admin GUI/dynacache.xml file. |
CacheEntry |
getEntry(java.lang.String id)
This returns the cache entry identified by the specified cache id. |
int |
getMaxNumberCacheEntries()
This gets the maximum number of cache entries. |
int |
getNumberCacheEntries()
This gets the current number of cache entries. |
java.io.Serializable |
getValue(java.lang.String id,
boolean askPermission)
This tries to find a value in the cache. |
void |
invalidateById(java.lang.String id,
boolean waitOnInvalidation)
This invalidates in all caches all entries dependent on the specified id. |
void |
invalidateByTemplate(java.lang.String template,
boolean waitOnInvalidation)
This invalidates in all caches all entries dependent on the specified template. |
Method Detail |
public CacheEntry getEntry(java.lang.String id)
id
- The cache id for the entry. The id cannot be null.public java.io.Serializable getValue(java.lang.String id, boolean askPermission)
id
- The cache id of the entry.askPermission
- True implies that execution must ask the
coordinating CacheUnit for permission.public void invalidateById(java.lang.String id, boolean waitOnInvalidation)
id
- The cache id or data id.waitOnInvalidation
- True indicates that this method should
not return until the invalidations have taken effect on all caches.
False indicates that the invalidations will be queued for later
batch processing.public void invalidateByTemplate(java.lang.String template, boolean waitOnInvalidation)
template
- The template name.waitOnInvalidation
- True indicates that this method should
not return until the invalidations have taken effect on all caches.
False indicates that the invalidations will be queued for later
batch processing.public void clear()
public java.util.Enumeration getAllIds()
public int getMaxNumberCacheEntries()
public int getNumberCacheEntries()
public int getDefaultPriority()
defaultPriority
- The default priority for this appserver.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |