|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cache.ehcache.internal.regions.EhcacheDataRegion
public abstract class EhcacheDataRegion
An Ehcache specific data region implementation.
This class is the ultimate superclass for all Ehcache Hibernate cache regions.
Field Summary | |
---|---|
protected EhcacheAccessStrategyFactory |
accessStrategyFactory
The EhcacheAccessStrategyFactory used for creating various access strategies |
protected net.sf.ehcache.Ehcache |
cache
Ehcache instance backing this Hibernate data region. |
Method Summary | |
---|---|
boolean |
contains(Object key)
Returns true if this region contains data for the given key. |
void |
destroy()
The "end state" contract of the region's lifecycle. |
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()
|
long |
nextTimestamp()
|
Map |
toMap()
Get the contents of this region as a map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final net.sf.ehcache.Ehcache cache
protected final EhcacheAccessStrategyFactory accessStrategyFactory
EhcacheAccessStrategyFactory
used for creating various access strategies
Method Detail |
---|
public String getName()
getName
in interface Region
public void destroy() throws CacheException
SessionFactory.close()
to give
the region a chance to cleanup.
destroy
in interface Region
CacheException
- Indicates problem shutting downpublic long getSizeInMemory()
getSizeInMemory
in interface Region
public long getElementCountInMemory()
getElementCountInMemory
in interface Region
public long getElementCountOnDisk()
getElementCountOnDisk
in interface Region
public Map toMap()
toMap
in interface Region
public long nextTimestamp()
nextTimestamp
in interface Region
public int getTimeout()
getTimeout
in interface Region
public net.sf.ehcache.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 Region
key
- The cache key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |