public class NonstopAwareEntityRegionAccessStrategy extends Object implements org.hibernate.cache.access.EntityRegionAccessStrategy
EntityRegionAccessStrategy that handles NonStopCacheException using
HibernateNonstopCacheExceptionHandler| Constructor and Description |
|---|
NonstopAwareEntityRegionAccessStrategy(org.hibernate.cache.access.EntityRegionAccessStrategy actualStrategy,
HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)
Constructor accepting the actual
EntityRegionAccessStrategy and the HibernateNonstopCacheExceptionHandler |
| Modifier and Type | Method and Description |
|---|---|
boolean |
afterInsert(Object key,
Object value,
Object version) |
boolean |
afterUpdate(Object key,
Object value,
Object currentVersion,
Object previousVersion,
org.hibernate.cache.access.SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(Object key,
long txTimestamp) |
org.hibernate.cache.EntityRegion |
getRegion() |
boolean |
insert(Object key,
Object value,
Object version) |
org.hibernate.cache.access.SoftLock |
lockItem(Object key,
Object version) |
org.hibernate.cache.access.SoftLock |
lockRegion() |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
void |
remove(Object key) |
void |
removeAll() |
void |
unlockItem(Object key,
org.hibernate.cache.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.access.SoftLock lock) |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
public NonstopAwareEntityRegionAccessStrategy(org.hibernate.cache.access.EntityRegionAccessStrategy actualStrategy,
HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)
EntityRegionAccessStrategy and the HibernateNonstopCacheExceptionHandleractualStrategy - hibernateNonstopExceptionHandler - public org.hibernate.cache.EntityRegion getRegion()
getRegion in interface org.hibernate.cache.access.EntityRegionAccessStrategyEntityRegionAccessStrategy.getRegion()public boolean afterInsert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
afterInsert in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.afterInsert(java.lang.Object, java.lang.Object, java.lang.Object)public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
afterUpdate in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.afterUpdate(java.lang.Object, java.lang.Object, java.lang.Object,
java.lang.Object, org.hibernate.cache.access.SoftLock)public void evict(Object key) throws org.hibernate.cache.CacheException
evict in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.evict(java.lang.Object)public void evictAll()
throws org.hibernate.cache.CacheException
evictAll in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.evictAll()public Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.get(java.lang.Object, long)public boolean insert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
insert in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.insert(java.lang.Object, java.lang.Object, java.lang.Object)public org.hibernate.cache.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException
lockItem in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.lockItem(java.lang.Object, java.lang.Object)public org.hibernate.cache.access.SoftLock lockRegion()
throws org.hibernate.cache.CacheException
lockRegion in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.lockRegion()public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object,
boolean)public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object)public void remove(Object key) throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.remove(java.lang.Object)public void removeAll()
throws org.hibernate.cache.CacheException
removeAll in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.removeAll()public void unlockItem(Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockItem in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.unlockItem(java.lang.Object, org.hibernate.cache.access.SoftLock)public void unlockRegion(org.hibernate.cache.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockRegion in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.unlockRegion(org.hibernate.cache.access.SoftLock)public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionEntityRegionAccessStrategy.update(java.lang.Object, java.lang.Object, java.lang.Object,
java.lang.Object)Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.