|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlobalCacheService
GlobalCacheService interface.
Field Summary | |
---|---|
static String |
ROLE
Avalon role - used to id the component within the manager |
Method Summary | |
---|---|
void |
addObject(String id,
CachedObject o)
Adds an object to the cache. |
void |
flushCache()
Flush the cache of all objects. |
List |
getCachedObjects()
Returns a copy of the non-expired CachedObjects in the cache as a list. |
int |
getCacheSize()
Returns the current size of the cache. |
List |
getKeys()
Returns a copy of keys to objects in the cache as a list. |
int |
getNumberOfObjects()
Returns the number of objects in the cache. |
CachedObject |
getObject(String id)
Gets a cached object given its id (a String). |
void |
removeObject(String id)
Removes an object from the cache. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
CachedObject getObject(String id) throws ObjectExpiredException
id
- The String id for the object.
ObjectExpiredException,
- if the object has expired in the cache.
ObjectExpiredException
void addObject(String id, CachedObject o)
id
- The String id for the object.o
- The object to add to the cache.void removeObject(String id)
id
- The String id for the object.List getKeys()
String
's representing the keys to
objects in the cache.List getCachedObjects()
CachedObject
objects held in the cacheint getCacheSize() throws IOException
IOException
int getNumberOfObjects()
void flushCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |