|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
GlobalCacheService interface.
Field Summary | |
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
void |
addObject(java.lang.String id,
CachedObject o)
Adds an object to the cache. |
void |
flushCache()
Flush the cache of all objects. |
int |
getCacheSize()
Returns the current size of the cache. |
int |
getNumberOfObjects()
Returns the number of objects in the cache. |
CachedObject |
getObject(java.lang.String id)
Gets a cached object given its id (a String). |
void |
removeObject(java.lang.String id)
Removes an object from the cache. |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String SERVICE_NAME
Method Detail |
public CachedObject getObject(java.lang.String id) throws ObjectExpiredException
id
- The String id for the object.
ObjectExpiredException,
- if the object has expired in
the cache.
ObjectExpiredException
public void addObject(java.lang.String id, CachedObject o)
id
- The String id for the object.o
- The object to add to the cache.public void removeObject(java.lang.String id)
id
- The String id for the object.public int getCacheSize() throws java.io.IOException
java.io.IOException
public int getNumberOfObjects()
public void flushCache()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |