|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.cache.TurbineGlobalCache
This is a Facade class for GlobalCacheService. This class provides static methods that call related methods of the implementation of the GlobalCacheService used by the System, according to the settings in TurbineResources.
| Constructor Summary | |
TurbineGlobalCache()
|
|
| Method Summary | |
static void |
addObject(java.lang.String id,
CachedObject o)
Adds an object to the cache. |
static int |
getCacheSize()
Returns the current size of the cache. |
static int |
getNumberOfObjects()
Returns the number of objects in the cache. |
static CachedObject |
getObject(java.lang.String id)
Gets a cached object given its id (a String). |
protected static GlobalCacheService |
getService()
Utility method for accessing the service implementation |
static void |
removeObject(java.lang.String id)
Removes an object from the cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TurbineGlobalCache()
| Method Detail |
protected static GlobalCacheService getService()
public static 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 static void addObject(java.lang.String id,
CachedObject o)
id - The String id for the object.o - The object to add to the cache.public static void removeObject(java.lang.String id)
id - The String id for the object.
public static int getCacheSize()
throws java.io.IOException
java.io.IOExceptionpublic static int getNumberOfObjects()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||