This class is the ultimate superclass for all Ehcache Hibernate cache regions.
| Modifier and Type | Field and Description |
|---|---|
| protected final EhcacheAccessStrategyFactory | accessStrategyFactory
The |
| protected final Ehcache | cache
Ehcache instance backing this Hibernate data region. |
| private static final String | |
| private final int | |
| private static final int | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv | EhcacheDataRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache cache, Properties properties)
Create a Hibernate data region backed by the given Ehcache instance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Object
The cache key key)Implements org. true if this region contains data for the given key.
|
| public void | destroy()
Implements org. |
| public Ehcache | |
| public long | getElementCountInMemory()
Implements org. |
| public long | getElementCountOnDisk()
Implements org. |
| public String | |
| public long | getSizeInMemory()
Implements org. |
| public int | |
| public long | |
| public Map |
| accessStrategyFactory | back to summary |
|---|---|
| protected final EhcacheAccessStrategyFactory accessStrategyFactory The | |
| cache | back to summary |
|---|---|
| protected final Ehcache cache Ehcache instance backing this Hibernate data region. | |
| CACHE_LOCK_TIMEOUT_PROPERTY | back to summary |
|---|---|
| private static final String CACHE_LOCK_TIMEOUT_PROPERTY | |
| cacheLockTimeout | back to summary |
|---|---|
| private final int cacheLockTimeout | |
| DEFAULT_CACHE_LOCK_TIMEOUT | back to summary |
|---|---|
| private static final int DEFAULT_CACHE_LOCK_TIMEOUT | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| EhcacheDataRegion | back to summary |
|---|---|
| pack-priv EhcacheDataRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache cache, Properties properties) Create a Hibernate data region backed by the given Ehcache instance. | |
| contains | back to summary |
|---|---|
| public boolean contains(Object key) Implements org. Returns This is a Hibernate 3.5 method.
| |
| destroy | back to summary |
|---|---|
| public void destroy() throws CacheException Implements org. Doc from org. The "end state" contract of the region's lifecycle. Called
during
| |
| getEhcache | back to summary |
|---|---|
| public Ehcache getEhcache() Return the Ehcache instance backing this Hibernate data region. | |
| getElementCountInMemory | back to summary |
|---|---|
| public long getElementCountInMemory() Implements org. Doc from org. The count of entries currently contained in the regions in-memory store.
| |
| getElementCountOnDisk | back to summary |
|---|---|
| public long getElementCountOnDisk() Implements org. Doc from org. The count of entries currently contained in the regions disk store.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Retrieve the name of this region.
| |
| getSizeInMemory | back to summary |
|---|---|
| public long getSizeInMemory() Implements org. Doc from org. The number of bytes is this cache region currently consuming in memory.
| |
| getTimeout | back to summary |
|---|---|
| public int getTimeout() Implements org. | |
| nextTimestamp | back to summary |
|---|---|
| public long nextTimestamp() Implements org. | |
| toMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get the contents of this region as a map. Implementors which do not support this notion should simply return an empty map.
| |