|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cache.impl.bridge.BaseRegionAdapter
public abstract class BaseRegionAdapter
Basic adapter bridging between Region
and Cache
.
Field Summary | |
---|---|
protected Settings |
settings
|
protected Cache |
underlyingCache
|
Constructor Summary | |
---|---|
protected |
BaseRegionAdapter(Cache underlyingCache,
Settings settings)
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
contains(Object key)
Determine whether this region contains data for the given key. |
void |
destroy()
The "end state" contract of the region's lifecycle. |
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 Cache underlyingCache
protected final Settings settings
Constructor Detail |
---|
protected BaseRegionAdapter(Cache underlyingCache, Settings settings)
Method Detail |
---|
public String getName()
Region
getName
in interface Region
public void clear() throws CacheException
CacheException
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 boolean contains(Object key)
Region
contains
in interface Region
key
- The cache key
public long getSizeInMemory()
Region
getSizeInMemory
in interface Region
public long getElementCountInMemory()
Region
getElementCountInMemory
in interface Region
public long getElementCountOnDisk()
Region
getElementCountOnDisk
in interface Region
public Map toMap()
Region
toMap
in interface Region
public long nextTimestamp()
nextTimestamp
in interface Region
public int getTimeout()
getTimeout
in interface Region
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |