public abstract class EhcacheDataRegion extends java.lang.Object implements Region
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.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.
|
java.lang.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.
|
java.util.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 java.lang.String getName()
Region
public void destroy() throws CacheException
Region
SessionFactory.close()
to give
the region a chance to cleanup.destroy
in interface Region
CacheException
- Indicates problem shutting downpublic long getSizeInMemory()
Region
getSizeInMemory
in interface Region
public long getElementCountInMemory()
Region
getElementCountInMemory
in interface Region
public long getElementCountOnDisk()
Region
getElementCountOnDisk
in interface Region
public java.util.Map toMap()
Region
public long nextTimestamp()
Region
nextTimestamp
in interface Region
public int getTimeout()
Region
getTimeout
in interface Region
public boolean contains(java.lang.Object key)
Region
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.