|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementors define a caching algorithm. All implementors must be threadsafe.
Method Summary | |
void |
clear()
Clear the cache |
void |
destroy()
Clean up |
Object |
get(Object key)
Get an item from the cache, nontransactionally |
long |
getElementCountInMemory()
The count of entries currently contained in the regions in-memory store. |
long |
getElementCountOnDisk()
The count of entries currently contained in the regions disk store. |
String |
getRegionName()
Get the name of the cache region |
long |
getSizeInMemory()
The number of bytes is this cache region currently consuming in memory. |
int |
getTimeout()
Get a reasonable "lock timeout" |
void |
lock(Object key)
If this is a clustered cache, lock the item |
long |
nextTimestamp()
Generate a timestamp |
void |
put(Object key,
Object value)
Add an item to the cache, nontransactionally, with failfast semantics |
Object |
read(Object key)
Get an item from the cache |
void |
remove(Object key)
Remove an item from the cache |
Map |
toMap()
optional operation |
void |
unlock(Object key)
If this is a clustered cache, unlock the item |
void |
update(Object key,
Object value)
Add an item to the cache |
Method Detail |
public Object read(Object key) throws CacheException
key
-
CacheException
public Object get(Object key) throws CacheException
key
-
CacheException
public void put(Object key, Object value) throws CacheException
key
- value
-
CacheException
public void update(Object key, Object value) throws CacheException
key
- value
-
CacheException
public void remove(Object key) throws CacheException
CacheException
public void clear() throws CacheException
CacheException
public void destroy() throws CacheException
CacheException
public void lock(Object key) throws CacheException
CacheException
public void unlock(Object key) throws CacheException
CacheException
public long nextTimestamp()
public int getTimeout()
public String getRegionName()
public long getSizeInMemory()
public long getElementCountInMemory()
public long getElementCountOnDisk()
public Map toMap()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |