|
ehcache | ||||||||||
| 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.
| Method Summary | |
boolean |
containsKey(java.lang.Object key)
A check to see if a key is in the Store. |
void |
dispose()
Prepares for shutdown. |
Element |
get(java.lang.Object key)
Gets an item from the cache. |
int |
getSize()
Returns the current store size. |
Status |
getStatus()
Returns the cache status. |
void |
put(Element element)
Puts an item into the cache. |
Element |
remove(java.lang.Object key)
Removes an item from the cache. |
void |
removeAll()
Remove all of the elements from the store. |
| Method Detail |
public void put(Element element)
throws CacheException
CacheExceptionpublic Element get(java.lang.Object key)
public Element remove(java.lang.Object key)
public void removeAll()
throws CacheException
CacheEventListeners they are notified of the expiry or removal
of the Element as each is removed.
CacheExceptionpublic void dispose()
public int getSize()
public Status getStatus()
public boolean containsKey(java.lang.Object key)
key - The Element key
|
ehcache | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||