Package org.redisson.hibernate.strategy
Class AbstractReadWriteAccessStrategy
java.lang.Object
org.redisson.hibernate.strategy.AbstractReadWriteAccessStrategy
- All Implemented Interfaces:
org.hibernate.cache.spi.access.RegionAccessStrategy
- Direct Known Subclasses:
ReadWriteCollectionRegionAccessStrategy,ReadWriteEntityRegionAccessStrategy,ReadWriteNaturalIdRegionAccessStrategy
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractReadWriteAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region, RMapCache<Object, Object> mapCache) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidevictAll()org.hibernate.cache.spi.access.SoftLockorg.hibernate.cache.spi.access.SoftLockbooleanputFromLoad(org.hibernate.engine.spi.SessionImplementor session, Object key, Object value, long txTimestamp, Object version) booleanputFromLoad(org.hibernate.engine.spi.SessionImplementor session, Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) voidvoidvoidunlockItem(org.hibernate.engine.spi.SessionImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) voidunlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
-
Constructor Details
-
AbstractReadWriteAccessStrategy
-
-
Method Details
-
get
public Object get(org.hibernate.engine.spi.SessionImplementor session, Object key, long txTimestamp) throws org.hibernate.cache.CacheException - Throws:
org.hibernate.cache.CacheException
-
putFromLoad
public boolean putFromLoad(org.hibernate.engine.spi.SessionImplementor session, Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException - Throws:
org.hibernate.cache.CacheException
-
lockItem
public org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SessionImplementor session, Object key, Object version) throws org.hibernate.cache.CacheException - Throws:
org.hibernate.cache.CacheException
-
unlockItem
public void unlockItem(org.hibernate.engine.spi.SessionImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException - Throws:
org.hibernate.cache.CacheException
-
putFromLoad
public boolean putFromLoad(org.hibernate.engine.spi.SessionImplementor session, Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException - Specified by:
putFromLoadin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
lockRegion
public org.hibernate.cache.spi.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException- Specified by:
lockRegionin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
unlockRegion
public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException - Specified by:
unlockRegionin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
remove
public void remove(org.hibernate.engine.spi.SessionImplementor session, Object key) throws org.hibernate.cache.CacheException - Specified by:
removein interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
removeAll
public void removeAll() throws org.hibernate.cache.CacheException- Specified by:
removeAllin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
evict
- Specified by:
evictin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Specified by:
evictAllin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-