public abstract class EhcacheDataRegion extends Object implements org.hibernate.cache.Region
This class is the ultimate superclass for all Ehcache Hibernate cache regions.
| Modifier and Type | Field and Description |
|---|---|
protected EhcacheAccessStrategyFactory |
accessStrategyFactory
The
EhcacheAccessStrategyFactory used for creating various access strategies |
protected Ehcache |
cache
Ehcache instance backing this Hibernate data region.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key)
Returns
true if this region contains data for the given key. |
void |
destroy() |
Ehcache |
getEhcache()
Return the Ehcache instance backing this Hibernate data region.
|
long |
getElementCountInMemory() |
long |
getElementCountOnDisk() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
long |
nextTimestamp() |
Map |
toMap() |
protected final Ehcache cache
protected final EhcacheAccessStrategyFactory accessStrategyFactory
EhcacheAccessStrategyFactory used for creating various access strategiespublic String getName()
getName in interface org.hibernate.cache.Regionpublic void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.Regionorg.hibernate.cache.CacheExceptionpublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.Regionpublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.Regionpublic long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.Regionpublic Map toMap()
toMap in interface org.hibernate.cache.Regionpublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.Regionpublic int getTimeout()
getTimeout in interface org.hibernate.cache.Regionpublic Ehcache getEhcache()
public boolean contains(Object key)
true if this region contains data for the given key.
This is a Hibernate 3.5 method.
contains in interface org.hibernate.cache.RegionCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.