public class JCacheRegion extends java.lang.Object implements Region
| Modifier and Type | Field and Description |
|---|---|
protected javax.cache.Cache<java.lang.Object,java.lang.Object> |
cache |
| Constructor and Description |
|---|
JCacheRegion(javax.cache.Cache<java.lang.Object,java.lang.Object> cache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.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.
|
java.lang.String |
getName()
Retrieve the name of this region.
|
long |
getSizeInMemory()
The number of bytes is this cache region currently consuming in memory.
|
int |
getTimeout()
Get a timeout value.
|
long |
nextTimestamp()
Get the next timestamp according to the underlying cache implementor.
|
java.util.Map |
toMap()
Get the contents of this region as a map.
|
public JCacheRegion(javax.cache.Cache<java.lang.Object,java.lang.Object> cache)
public java.lang.String getName()
Regionpublic void destroy()
throws CacheException
RegionSessionFactory.close() to give
the region a chance to cleanup.destroy in interface RegionCacheException - Indicates problem shutting downpublic boolean contains(java.lang.Object key)
Regionpublic long getSizeInMemory()
RegiongetSizeInMemory in interface Regionpublic long getElementCountInMemory()
RegiongetElementCountInMemory in interface Regionpublic long getElementCountOnDisk()
RegiongetElementCountOnDisk in interface Regionpublic java.util.Map toMap()
Regionpublic long nextTimestamp()
RegionnextTimestamp in interface Regionpublic int getTimeout()
RegiongetTimeout in interface RegionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.