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.Region
public void destroy() throws org.hibernate.cache.CacheException
destroy
in interface org.hibernate.cache.Region
org.hibernate.cache.CacheException
public long getSizeInMemory()
getSizeInMemory
in interface org.hibernate.cache.Region
public long getElementCountInMemory()
getElementCountInMemory
in interface org.hibernate.cache.Region
public long getElementCountOnDisk()
getElementCountOnDisk
in interface org.hibernate.cache.Region
public Map toMap()
toMap
in interface org.hibernate.cache.Region
public long nextTimestamp()
nextTimestamp
in interface org.hibernate.cache.Region
public int getTimeout()
getTimeout
in interface org.hibernate.cache.Region
public 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.Region
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.