public class EhcacheNaturalIdRegion extends EhcacheTransactionalDataRegion implements NaturalIdRegion
metadata, settings
accessStrategyFactory, cache
Constructor and Description |
---|
EhcacheNaturalIdRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
net.sf.ehcache.Ehcache underlyingCache,
Settings settings,
CacheDataDescription metadata,
Properties properties)
Constructs an EhcacheNaturalIdRegion around the given underlying cache.
|
Modifier and Type | Method and Description |
---|---|
NaturalIdRegionAccessStrategy |
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, 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 EhcacheNaturalIdRegion(EhcacheAccessStrategyFactory accessStrategyFactory, net.sf.ehcache.Ehcache underlyingCache, Settings settings, CacheDataDescription metadata, Properties properties)
accessStrategyFactory
- public NaturalIdRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException
NaturalIdRegion
buildAccessStrategy
in interface NaturalIdRegion
accessType
- The type of access strategy to build; never null.CacheException
- Usually indicates mis-configuration.Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.