Package org.redisson.hibernate.strategy
Class ReadWriteCollectionRegionAccessStrategy
java.lang.Object
org.redisson.hibernate.strategy.AbstractReadWriteAccessStrategy
org.redisson.hibernate.strategy.ReadWriteCollectionRegionAccessStrategy
- All Implemented Interfaces:
org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
,org.hibernate.cache.spi.access.RegionAccessStrategy
public class ReadWriteCollectionRegionAccessStrategy
extends AbstractReadWriteAccessStrategy
implements org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionReadWriteCollectionRegionAccessStrategy
(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region, RMapCache<Object, Object> mapCache) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
evictAll()
org.hibernate.cache.spi.CollectionRegion
org.hibernate.cache.spi.access.SoftLock
boolean
putFromLoad
(Object key, Object value, long txTimestamp, Object version) void
void
void
unlockRegion
(org.hibernate.cache.spi.access.SoftLock lock) Methods inherited from class org.redisson.hibernate.strategy.AbstractReadWriteAccessStrategy
get, lockItem, putFromLoad, unlockItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.cache.spi.access.RegionAccessStrategy
evict, evictAll, get, lockItem, lockRegion, putFromLoad, putFromLoad, remove, removeAll, unlockItem, unlockRegion
-
Constructor Details
-
ReadWriteCollectionRegionAccessStrategy
-
-
Method Details
-
getRegion
public org.hibernate.cache.spi.CollectionRegion getRegion()- Specified by:
getRegion
in interfaceorg.hibernate.cache.spi.access.CollectionRegionAccessStrategy
-
putFromLoad
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException - Specified by:
putFromLoad
in 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:
lockRegion
in 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:
unlockRegion
in interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy
- Throws:
org.hibernate.cache.CacheException
-
remove
- Specified by:
remove
in interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy
- Throws:
org.hibernate.cache.CacheException
-
removeAll
public void removeAll() throws org.hibernate.cache.CacheException- Specified by:
removeAll
in interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy
- Throws:
org.hibernate.cache.CacheException
-
evict
- Specified by:
evict
in interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy
- Throws:
org.hibernate.cache.CacheException
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Specified by:
evictAll
in interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy
- Throws:
org.hibernate.cache.CacheException
-