Class NonStrictReadWriteCollectionRegionAccessStrategy

java.lang.Object
org.redisson.hibernate.strategy.NonStrictReadWriteCollectionRegionAccessStrategy
All Implemented Interfaces:
org.hibernate.cache.spi.access.CollectionRegionAccessStrategy, org.hibernate.cache.spi.access.RegionAccessStrategy

public class NonStrictReadWriteCollectionRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
Author:
Nikita Koksharov
  • Constructor Details

    • NonStrictReadWriteCollectionRegionAccessStrategy

      public NonStrictReadWriteCollectionRegionAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region)
  • Method Details

    • getRegion

      public org.hibernate.cache.spi.CollectionRegion getRegion()
      Specified by:
      getRegion in interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
    • get

      public Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
      Specified by:
      get in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • putFromLoad

      public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
      Specified by:
      putFromLoad in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • lockItem

      public org.hibernate.cache.spi.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException
      Specified by:
      lockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • unlockItem

      public void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
      Specified by:
      unlockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • remove

      public void remove(Object key) throws org.hibernate.cache.CacheException
      Specified by:
      remove in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • putFromLoad

      public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
      Specified by:
      putFromLoad in interface org.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 interface org.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 interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • removeAll

      public void removeAll() throws org.hibernate.cache.CacheException
      Specified by:
      removeAll in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • evict

      public void evict(Object key) throws org.hibernate.cache.CacheException
      Specified by:
      evict in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException
    • evictAll

      public void evictAll() throws org.hibernate.cache.CacheException
      Specified by:
      evictAll in interface org.hibernate.cache.spi.access.RegionAccessStrategy
      Throws:
      org.hibernate.cache.CacheException