|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.hibernate.nonstop.NonstopAwareCollectionRegionAccessStrategy
public class NonstopAwareCollectionRegionAccessStrategy
Implementation of CollectionRegionAccessStrategy
that handles NonStopCacheException
using
HibernateNonstopCacheExceptionHandler
Constructor Summary | |
---|---|
NonstopAwareCollectionRegionAccessStrategy(org.hibernate.cache.access.CollectionRegionAccessStrategy actualStrategy,
HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)
Constructor accepting the actual CollectionRegionAccessStrategy and the HibernateNonstopCacheExceptionHandler |
Method Summary | |
---|---|
void |
evict(Object key)
|
void |
evictAll()
|
Object |
get(Object key,
long txTimestamp)
|
org.hibernate.cache.CollectionRegion |
getRegion()
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonstopAwareCollectionRegionAccessStrategy(org.hibernate.cache.access.CollectionRegionAccessStrategy actualStrategy, HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)
CollectionRegionAccessStrategy
and the HibernateNonstopCacheExceptionHandler
actualStrategy
- hibernateNonstopExceptionHandler
- Method Detail |
---|
public org.hibernate.cache.CollectionRegion getRegion()
getRegion
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
EntityRegionAccessStrategy.getRegion()
public void evict(Object key) throws org.hibernate.cache.CacheException
evict
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.evict(java.lang.Object)
public void evictAll() throws org.hibernate.cache.CacheException
evictAll
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.evictAll()
public Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.get(java.lang.Object, long)
public org.hibernate.cache.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException
lockItem
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.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.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.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.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.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.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.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.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.remove(java.lang.Object)
public void removeAll() throws org.hibernate.cache.CacheException
removeAll
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.removeAll()
public void unlockItem(Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockItem
in interface org.hibernate.cache.access.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.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.CollectionRegionAccessStrategy
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.unlockRegion(org.hibernate.cache.access.SoftLock)
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |