| Constructor and Description |
|---|
HashtableCache(String regionName) |
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
toString() |
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
|
public HashtableCache(String regionName)
public String getRegionName()
CachegetRegionName in interface Cachepublic Object read(Object key) throws CacheException
Cacheread in interface CacheCacheExceptionpublic Object get(Object key) throws CacheException
Cacheget in interface CacheCacheExceptionpublic void update(Object key, Object value) throws CacheException
Cacheupdate in interface CacheCacheExceptionpublic void put(Object key, Object value) throws CacheException
Cacheput in interface CacheCacheExceptionpublic void remove(Object key) throws CacheException
Cacheremove in interface CacheCacheExceptionpublic void clear()
throws CacheException
Cacheclear in interface CacheCacheExceptionpublic void destroy()
throws CacheException
Cachedestroy in interface CacheCacheExceptionpublic void lock(Object key) throws CacheException
Cachelock in interface CacheCacheExceptionpublic void unlock(Object key) throws CacheException
Cacheunlock in interface CacheCacheExceptionpublic long nextTimestamp()
CachenextTimestamp in interface Cachepublic int getTimeout()
CachegetTimeout in interface Cachepublic long getSizeInMemory()
CachegetSizeInMemory in interface Cachepublic long getElementCountInMemory()
CachegetElementCountInMemory in interface Cachepublic long getElementCountOnDisk()
CachegetElementCountOnDisk in interface CacheCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved