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