public class EhcacheCollectionRegion extends EhcacheTransactionalDataRegion implements CollectionRegion
metadata
Constructor and Description |
---|
EhcacheCollectionRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
net.sf.ehcache.Ehcache underlyingCache,
SessionFactoryOptions settings,
CacheDataDescription metadata,
java.util.Properties properties)
Constructs an EhcacheCollectionRegion around the given underlying cache.
|
Modifier and Type | Method and Description |
---|---|
CollectionRegionAccessStrategy |
buildAccessStrategy(AccessType accessType)
Build an access strategy for the requested access type.
|
clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, readLock, readUnlock, remove, writeLock, writeUnlock
contains, destroy, getAccessStrategyFactory, getCache, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCacheDataDescription, isTransactionAware
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public EhcacheCollectionRegion(EhcacheAccessStrategyFactory accessStrategyFactory, net.sf.ehcache.Ehcache underlyingCache, SessionFactoryOptions settings, CacheDataDescription metadata, java.util.Properties properties)
accessStrategyFactory
- The factory for building needed CollectionRegionAccessStrategy instanceunderlyingCache
- The ehcache cache instancesettings
- The Hibernate settingsmetadata
- Metadata about the data to be cached in this regionproperties
- Any additional[ propertiespublic CollectionRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException
CollectionRegion
buildAccessStrategy
in interface CollectionRegion
accessType
- The type of access strategy to build; never null.CacheException
- Usually indicates mis-configuration.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.