Package net.sf.ehcache.hibernate.nonstop
Class NonstopAwareCollectionRegionAccessStrategy
- java.lang.Object
-
- net.sf.ehcache.hibernate.nonstop.NonstopAwareCollectionRegionAccessStrategy
-
- All Implemented Interfaces:
org.hibernate.cache.access.CollectionRegionAccessStrategy
public class NonstopAwareCollectionRegionAccessStrategy extends java.lang.Object implements org.hibernate.cache.access.CollectionRegionAccessStrategyImplementation ofCollectionRegionAccessStrategythat handlesNonStopCacheExceptionusingHibernateNonstopCacheExceptionHandler- Author:
- Abhishek Sanoujam
-
-
Constructor Summary
Constructors Constructor Description NonstopAwareCollectionRegionAccessStrategy(org.hibernate.cache.access.CollectionRegionAccessStrategy actualStrategy, HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)Constructor accepting the actualCollectionRegionAccessStrategyand theHibernateNonstopCacheExceptionHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevict(java.lang.Object key)voidevictAll()java.lang.Objectget(java.lang.Object key, long txTimestamp)org.hibernate.cache.CollectionRegiongetRegion()org.hibernate.cache.access.SoftLocklockItem(java.lang.Object key, java.lang.Object version)org.hibernate.cache.access.SoftLocklockRegion()booleanputFromLoad(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version)booleanputFromLoad(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version, boolean minimalPutOverride)voidremove(java.lang.Object key)voidremoveAll()voidunlockItem(java.lang.Object key, org.hibernate.cache.access.SoftLock lock)voidunlockRegion(org.hibernate.cache.access.SoftLock lock)
-
-
-
Constructor Detail
-
NonstopAwareCollectionRegionAccessStrategy
public NonstopAwareCollectionRegionAccessStrategy(org.hibernate.cache.access.CollectionRegionAccessStrategy actualStrategy, HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)Constructor accepting the actualCollectionRegionAccessStrategyand theHibernateNonstopCacheExceptionHandler- Parameters:
actualStrategy-hibernateNonstopExceptionHandler-
-
-
Method Detail
-
getRegion
public org.hibernate.cache.CollectionRegion getRegion()
- Specified by:
getRegionin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- See Also:
EntityRegionAccessStrategy.getRegion()
-
evict
public void evict(java.lang.Object key) throws org.hibernate.cache.CacheException- Specified by:
evictin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.evict(java.lang.Object)
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Specified by:
evictAllin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.evictAll()
-
get
public java.lang.Object get(java.lang.Object key, long txTimestamp) throws org.hibernate.cache.CacheException- Specified by:
getin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.get(java.lang.Object, long)
-
lockItem
public org.hibernate.cache.access.SoftLock lockItem(java.lang.Object key, java.lang.Object version) throws org.hibernate.cache.CacheException- Specified by:
lockItemin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.lockItem(java.lang.Object, java.lang.Object)
-
lockRegion
public org.hibernate.cache.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException- Specified by:
lockRegionin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.lockRegion()
-
putFromLoad
public boolean putFromLoad(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException- Specified by:
putFromLoadin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object, boolean)
-
putFromLoad
public boolean putFromLoad(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version) throws org.hibernate.cache.CacheException- Specified by:
putFromLoadin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object)
-
remove
public void remove(java.lang.Object key) throws org.hibernate.cache.CacheException- Specified by:
removein interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.remove(java.lang.Object)
-
removeAll
public void removeAll() throws org.hibernate.cache.CacheException- Specified by:
removeAllin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.removeAll()
-
unlockItem
public void unlockItem(java.lang.Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException- Specified by:
unlockItemin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.unlockItem(java.lang.Object, org.hibernate.cache.access.SoftLock)
-
unlockRegion
public void unlockRegion(org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException- Specified by:
unlockRegionin interfaceorg.hibernate.cache.access.CollectionRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException- See Also:
EntityRegionAccessStrategy.unlockRegion(org.hibernate.cache.access.SoftLock)
-
-