public abstract class EhcacheDataRegion extends Object implements Region
Modifier and Type | Field and Description |
---|---|
protected EhcacheAccessStrategyFactory |
accessStrategyFactory
The
EhcacheAccessStrategyFactory used for creating various access strategies |
protected net.sf.ehcache.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()
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.
|
protected final net.sf.ehcache.Ehcache cache
protected final EhcacheAccessStrategyFactory accessStrategyFactory
EhcacheAccessStrategyFactory
used for creating various access strategiespublic String getName()
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()
public long nextTimestamp()
nextTimestamp
in interface Region
public int getTimeout()
getTimeout
in interface Region
public net.sf.ehcache.Ehcache getEhcache()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.