Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface Region
Method Summary | |
void |
|
long |
|
long |
|
String |
|
long |
|
int | |
long | |
Map |
|
public void destroy() throws CacheException
The "end state" contract of the region's lifecycle. Called duringSessionFactory.close()
to give the region a chance to cleanup.
- Throws:
CacheException
- Indicates problem shutting down
public long getElementCountInMemory()
The count of entries currently contained in the regions in-memory store.
- Returns:
- The count of entries in memory; -1 if unknown or unsupported.
public long getElementCountOnDisk()
The count of entries currently contained in the regions disk store.
- Returns:
- The count of entries on disk; -1 if unknown or unsupported.
public String getName()
Retrieve the name of this region.
- Returns:
- The region name
public long getSizeInMemory()
The number of bytes is this cache region currently consuming in memory.
- Returns:
- The number of bytes consumed by this region; -1 if unknown or unsupported.
public int getTimeout()
public long nextTimestamp()
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.
- Returns:
- The content map.