org.hibernate.cache
Interface Region
- CollectionRegion, EntityRegion, GeneralDataRegion, QueryResultsRegion, TimestampsRegion, TransactionalDataRegion
- BaseGeneralDataRegionAdapter, BaseRegionAdapter, BaseTransactionalDataRegionAdapter, CollectionRegionAdapter, EntityRegionAdapter, QueryResultsRegionAdapter, TimestampsRegionAdapter
Defines a contract for accessing a particular named region within the
underlying cache implementation.
getElementCountInMemory
public long getElementCountInMemory()
The count of entries currently contained in the regions in-memory store.
- The count of entries in memory; -1 if unknown or unsupported.
getElementCountOnDisk
public long getElementCountOnDisk()
The count of entries currently contained in the regions disk store.
- The count of entries on disk; -1 if unknown or unsupported.
getName
public String getName()
Retrieve the name of this region.
getSizeInMemory
public long getSizeInMemory()
The number of bytes is this cache region currently consuming in memory.
- The number of bytes consumed by this region; -1 if unknown or
unsupported.
getTimeout
public int getTimeout()
nextTimestamp
public long nextTimestamp()
toMap
public Map toMap()
Get the contents of this region as a map.
Implementors which do not support this notion
should simply return an empty map.