public abstract class BaseRegionAdapter extends Object implements Region
| Modifier and Type | Field and Description |
|---|---|
protected Settings |
settings |
protected Cache |
underlyingCache |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseRegionAdapter(Cache underlyingCache,
Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(Object key)
Determine whether this region contains data for the given key.
|
void |
destroy()
The "end state" contract of the region's lifecycle.
|
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 |
getName()
Retrieve the name of this region.
|
long |
getSizeInMemory()
The number of bytes is this cache region currently consuming in memory.
|
int |
getTimeout() |
long |
nextTimestamp() |
Map |
toMap()
Get the contents of this region as a map.
|
protected final Cache underlyingCache
protected final Settings settings
public String getName()
Regionpublic void clear()
throws CacheException
CacheExceptionpublic void destroy()
throws CacheException
RegionSessionFactory.close() to give
the region a chance to cleanup.destroy in interface RegionCacheException - Indicates problem shutting downpublic boolean contains(Object key)
Regionpublic long getSizeInMemory()
RegiongetSizeInMemory in interface Regionpublic long getElementCountInMemory()
RegiongetElementCountInMemory in interface Regionpublic long getElementCountOnDisk()
RegiongetElementCountOnDisk in interface Regionpublic Map toMap()
Regionpublic long nextTimestamp()
nextTimestamp in interface Regionpublic int getTimeout()
getTimeout in interface RegionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved