|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.services.portletcache.GlobalCache
This class is a static wrapper around the Turbine GlobalCacheService which doesn't provide its own wrapper.
GlobalCacheService
Constructor Summary | |
GlobalCache()
|
Method Summary | |
static void |
addObject(java.lang.String id,
org.apache.turbine.services.cache.CachedObject o)
Add an object to the cache |
void |
flushCache()
Flush the cache of ALL objects |
static int |
getCacheSize()
Gets size, in bytes, of cache |
static int |
getNumberOfObjects()
Gets size, in bytes, of cache |
static org.apache.turbine.services.cache.CachedObject |
getObject(java.lang.String id)
Gets a cached object given its id (a String). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GlobalCache()
Method Detail |
public static void addObject(java.lang.String id, org.apache.turbine.services.cache.CachedObject o)
id
- key of the object used by the cache to store and retrieve
it. Must not be null.o
- the object to cachepublic static org.apache.turbine.services.cache.CachedObject getObject(java.lang.String id) throws org.apache.turbine.services.cache.ObjectExpiredException
id
- The String id for the object.
org.apache.turbine.services.cache.ObjectExpiredException
- The object has expired in
the cache.public static int getCacheSize() throws java.io.IOException
java.io.IOException
- Exception passed frompublic static int getNumberOfObjects()
public void flushCache()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |