|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a cache.
Nested Class Summary | |
static interface |
Cache.CacheListener
Interface for receiving cache events. |
Method Summary | |
void |
addListener(Cache.CacheListener lis)
Add a listener to the cache. |
void |
addObject(java.lang.Object objectId,
java.lang.Object obj)
Put an object into the cache. |
void |
flush()
Flush all the objects in the cache. |
CachedObject |
getCachedObject(java.lang.Object objectId)
Get the container for an object from the cache. |
java.util.List |
getCachedObjects()
Get the list of the cached objects from the cache. |
int |
getCapacity()
Get the capacity of the cache. |
java.lang.Object |
getObject(java.lang.Object objectId)
Get an object from the cache. |
java.util.List |
getObjectIds()
Get the list of the object ids from the cache. |
java.util.List |
getObjects()
Get the list of the objects from the cache. |
int |
getSize()
Get the number of objects in the cache. |
void |
removeListener(Cache.CacheListener lis)
Remove a listener from the cache. |
void |
removeObject(java.lang.Object objectId)
Remove an object from a cache. |
Method Detail |
public void addListener(Cache.CacheListener lis)
public void removeListener(Cache.CacheListener lis)
public void addObject(java.lang.Object objectId, java.lang.Object obj) throws CacheException
CacheException
public java.lang.Object getObject(java.lang.Object objectId)
public CachedObject getCachedObject(java.lang.Object objectId)
public java.util.List getObjects()
public java.util.List getCachedObjects()
public java.util.List getObjectIds()
public void removeObject(java.lang.Object objectId)
public int getCapacity()
public int getSize()
public void flush()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |