public abstract class EhcacheDataRegion extends Object implements Region
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected EhcacheAccessStrategyFactory |
getAccessStrategyFactory()
The
EhcacheAccessStrategyFactory used for creating
various access strategies |
protected net.sf.ehcache.Ehcache |
getCache()
Ehcache instance backing this Hibernate data region.
|
net.sf.ehcache.Ehcache |
getEhcache()
Return the Ehcache instance backing this Hibernate data region.
|
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()
Get a timeout value.
|
long |
nextTimestamp()
Get the next timestamp according to the underlying cache implementor.
|
Map |
toMap()
Get the contents of this region as a map.
|
protected net.sf.ehcache.Ehcache getCache()
protected EhcacheAccessStrategyFactory getAccessStrategyFactory()
EhcacheAccessStrategyFactory used for creating
various access strategiespublic net.sf.ehcache.Ehcache getEhcache()
public 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 long getSizeInMemory()
RegiongetSizeInMemory in interface Regionpublic long getElementCountInMemory()
RegiongetElementCountInMemory in interface Regionpublic long getElementCountOnDisk()
RegiongetElementCountOnDisk in interface Regionpublic Map toMap()
Regionpublic long nextTimestamp()
RegionnextTimestamp in interface Regionpublic int getTimeout()
RegiongetTimeout in interface Regionpublic boolean contains(Object key)
RegionCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.