org.hibernate.cache.ehcache.internal.regions
Class EhcacheCollectionRegion
java.lang.Object
org.hibernate.cache.ehcache.internal.regions.EhcacheDataRegion
org.hibernate.cache.ehcache.internal.regions.EhcacheTransactionalDataRegion
org.hibernate.cache.ehcache.internal.regions.EhcacheCollectionRegion
- All Implemented Interfaces:
- CollectionRegion, Region, TransactionalDataRegion
public class EhcacheCollectionRegion
- extends EhcacheTransactionalDataRegion
- implements CollectionRegion
A collection region specific wrapper around an Ehcache instance.
This implementation returns Ehcache specific access strategy instances for all the non-transactional access types. Transactional access
is not supported.
Methods inherited from class org.hibernate.cache.ehcache.internal.regions.EhcacheTransactionalDataRegion |
clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, readLock, readUnlock, remove, writeLock, writeUnlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EhcacheCollectionRegion
public EhcacheCollectionRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
net.sf.ehcache.Ehcache underlyingCache,
Settings settings,
CacheDataDescription metadata,
Properties properties)
- Constructs an EhcacheCollectionRegion around the given underlying cache.
- Parameters:
accessStrategyFactory
-
buildAccessStrategy
public CollectionRegionAccessStrategy buildAccessStrategy(AccessType accessType)
throws CacheException
- Build an access strategy for the requested access type.
- Specified by:
buildAccessStrategy
in interface CollectionRegion
- Parameters:
accessType
- The type of access strategy to build; never null.
- Returns:
- The appropriate strategy contract for accessing this region
for the requested type of access.
- Throws:
CacheException
- Usually indicates mis-configuration.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.