org.hibernate.cache.impl.bridge

Class BaseRegionAdapter

Implemented Interfaces:
Region
Known Direct Subclasses:
BaseGeneralDataRegionAdapter, BaseTransactionalDataRegionAdapter

public abstract class BaseRegionAdapter
extends java.lang.Object
implements Region

Basic adapter bridging between Region and Cache.
Author:
Steve Ebersole

Field Summary

protected Settings
settings
protected Cache
underlyingCache

Constructor Summary

BaseRegionAdapter(Cache underlyingCache, Settings settings)

Method Summary

void
clear()
void
destroy()
long
getElementCountInMemory()
long
getElementCountOnDisk()
String
getName()
long
getSizeInMemory()
int
getTimeout()
long
nextTimestamp()
Map
toMap()

Field Details

settings

protected final Settings settings

underlyingCache

protected final Cache underlyingCache

Constructor Details

BaseRegionAdapter

protected BaseRegionAdapter(Cache underlyingCache,
                            Settings settings)

Method Details

clear

public void clear()
            throws CacheException

destroy

public void destroy()
            throws CacheException
Specified by:
destroy in interface Region

getElementCountInMemory

public long getElementCountInMemory()
Specified by:
getElementCountInMemory in interface Region

getElementCountOnDisk

public long getElementCountOnDisk()
Specified by:
getElementCountOnDisk in interface Region

getName

public String getName()
Specified by:
getName in interface Region

getSizeInMemory

public long getSizeInMemory()
Specified by:
getSizeInMemory in interface Region

getTimeout

public int getTimeout()
Specified by:
getTimeout in interface Region

nextTimestamp

public long nextTimestamp()
Specified by:
nextTimestamp in interface Region

toMap

public Map toMap()
Specified by:
toMap in interface Region