public class NonstopAccessStrategyFactory extends Object implements EhcacheAccessStrategyFactory
EhcacheAccessStrategyFactory
that takes care of Nonstop cache exceptions using
HibernateNonstopCacheExceptionHandler
Constructor and Description |
---|
NonstopAccessStrategyFactory(EhcacheAccessStrategyFactory actualFactory)
Constructor accepting the actual factory
|
Modifier and Type | Method and Description |
---|---|
CollectionRegionAccessStrategy |
createCollectionRegionAccessStrategy(EhcacheCollectionRegion collectionRegion,
AccessType accessType)
|
EntityRegionAccessStrategy |
createEntityRegionAccessStrategy(EhcacheEntityRegion entityRegion,
AccessType accessType)
|
NaturalIdRegionAccessStrategy |
createNaturalIdRegionAccessStrategy(EhcacheNaturalIdRegion naturalIdRegion,
AccessType accessType)
|
public NonstopAccessStrategyFactory(EhcacheAccessStrategyFactory actualFactory)
actualFactory
- The wrapped RegionAccessStrategy factorypublic EntityRegionAccessStrategy createEntityRegionAccessStrategy(EhcacheEntityRegion entityRegion, AccessType accessType)
EhcacheAccessStrategyFactory
createEntityRegionAccessStrategy
in interface EhcacheAccessStrategyFactory
entityRegion
- The entity region being wrappedaccessType
- The type of access to allow to the regionEntityRegionAccessStrategy
public NaturalIdRegionAccessStrategy createNaturalIdRegionAccessStrategy(EhcacheNaturalIdRegion naturalIdRegion, AccessType accessType)
EhcacheAccessStrategyFactory
createNaturalIdRegionAccessStrategy
in interface EhcacheAccessStrategyFactory
naturalIdRegion
- The natural-id region being wrappedaccessType
- The type of access to allow to the regionNaturalIdRegionAccessStrategy
public CollectionRegionAccessStrategy createCollectionRegionAccessStrategy(EhcacheCollectionRegion collectionRegion, AccessType accessType)
EhcacheAccessStrategyFactory
createCollectionRegionAccessStrategy
in interface EhcacheAccessStrategyFactory
collectionRegion
- The collection region being wrappedaccessType
- The type of access to allow to the regionCollectionRegionAccessStrategy
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.