public class EhcacheEntityRegion extends EhcacheTransactionalDataRegion implements org.hibernate.cache.EntityRegion
This implementation returns Ehcache specific access strategy instances for all the non-transactional access types. Transactional access is not supported.
metadata, settings
accessStrategyFactory, cache
Constructor and Description |
---|
EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache underlyingCache,
org.hibernate.cfg.Settings settings,
org.hibernate.cache.CacheDataDescription metadata,
Properties properties)
Constructs an EhcacheEntityRegion around the given underlying cache.
|
Modifier and Type | Method and Description |
---|---|
org.hibernate.cache.access.EntityRegionAccessStrategy |
buildAccessStrategy(org.hibernate.cache.access.AccessType accessType) |
clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, putEternal, readLock, readUnlock, remove, writeLock, writeUnlock
contains, destroy, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache underlyingCache, org.hibernate.cfg.Settings settings, org.hibernate.cache.CacheDataDescription metadata, Properties properties)
accessStrategyFactory
- public org.hibernate.cache.access.EntityRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.access.AccessType accessType) throws org.hibernate.cache.CacheException
buildAccessStrategy
in interface org.hibernate.cache.EntityRegion
org.hibernate.cache.CacheException
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.