|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface for all stores. A store is a physical counterpart to a cache, which is a logical concept.
Field Summary | |
static int |
CACHE_HUB
Composite, including memory cache, type and central hub. |
static int |
DISK_CACHE
Disk cache type. |
static int |
STATUS_ALIVE
Store alive status. |
static int |
STATUS_DISPOSED
Store disposed status. |
static int |
STATUS_ERROR
Store in error. |
static int |
STATUS_UNINITIALISED
Store alive status. |
Method Summary | |
void |
dispose()
Prepares for shutdown. |
Element |
get(java.io.Serializable key)
Gets an item from the cache. |
int |
getCacheType()
Returns the cache type. |
java.lang.String |
getName()
Returns the cache name. |
int |
getSize()
Returns the current cache size. |
int |
getStatus()
Returns the cache status. |
void |
put(Element element)
Puts an item into the cache. |
boolean |
remove(java.io.Serializable key)
Removes an item from the cache. |
void |
removeAll()
Removes all cached items from the cache. |
Field Detail |
public static final int CACHE_HUB
public static final int DISK_CACHE
public static final int STATUS_UNINITIALISED
public static final int STATUS_ALIVE
public static final int STATUS_DISPOSED
public static final int STATUS_ERROR
Method Detail |
public void put(Element element) throws java.io.IOException
java.io.IOException
public Element get(java.io.Serializable key) throws java.io.IOException
java.io.IOException
public boolean remove(java.io.Serializable key) throws java.io.IOException
java.io.IOException
public void removeAll() throws java.io.IOException
java.io.IOException
public void dispose() throws java.io.IOException
java.io.IOException
public int getSize()
public int getStatus()
public java.lang.String getName()
public int getCacheType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |