public interface Cache
| Modifier and Type | Method and Description |
|---|---|
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
|
Object read(Object key) throws CacheException
key - CacheExceptionObject get(Object key) throws CacheException
key - CacheExceptionvoid put(Object key, Object value) throws CacheException
key - value - CacheExceptionvoid update(Object key, Object value) throws CacheException
key - value - CacheExceptionvoid remove(Object key) throws CacheException
CacheExceptionvoid clear()
throws CacheException
CacheExceptionvoid destroy()
throws CacheException
CacheExceptionvoid lock(Object key) throws CacheException
CacheExceptionvoid unlock(Object key) throws CacheException
CacheExceptionlong nextTimestamp()
int getTimeout()
String getRegionName()
long getSizeInMemory()
long getElementCountInMemory()
long getElementCountOnDisk()
Map toMap()
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved