Class BaseRegion

java.lang.Object
org.redisson.hibernate.region.BaseRegion
All Implemented Interfaces:
org.hibernate.cache.spi.GeneralDataRegion, org.hibernate.cache.spi.Region, org.hibernate.cache.spi.TransactionalDataRegion
Direct Known Subclasses:
RedissonCollectionRegion, RedissonEntityRegion, RedissonNaturalIdRegion, RedissonQueryRegion, RedissonTimestampsRegion

public class BaseRegion extends Object implements org.hibernate.cache.spi.TransactionalDataRegion, org.hibernate.cache.spi.GeneralDataRegion
Author:
Nikita Koksharov
  • Constructor Details

  • Method Details

    • isTransactionAware

      public boolean isTransactionAware()
      Specified by:
      isTransactionAware in interface org.hibernate.cache.spi.TransactionalDataRegion
    • getCacheDataDescription

      public org.hibernate.cache.spi.CacheDataDescription getCacheDataDescription()
      Specified by:
      getCacheDataDescription in interface org.hibernate.cache.spi.TransactionalDataRegion
    • getName

      public String getName()
      Specified by:
      getName in interface org.hibernate.cache.spi.Region
    • destroy

      public void destroy() throws org.hibernate.cache.CacheException
      Specified by:
      destroy in interface org.hibernate.cache.spi.Region
      Throws:
      org.hibernate.cache.CacheException
    • contains

      public boolean contains(Object key)
      Specified by:
      contains in interface org.hibernate.cache.spi.Region
    • getSizeInMemory

      public long getSizeInMemory()
      Specified by:
      getSizeInMemory in interface org.hibernate.cache.spi.Region
    • getElementCountInMemory

      public long getElementCountInMemory()
      Specified by:
      getElementCountInMemory in interface org.hibernate.cache.spi.Region
    • getElementCountOnDisk

      public long getElementCountOnDisk()
      Specified by:
      getElementCountOnDisk in interface org.hibernate.cache.spi.Region
    • toMap

      public Map<?,?> toMap()
      Specified by:
      toMap in interface org.hibernate.cache.spi.Region
    • nextTimestamp

      public long nextTimestamp()
      Specified by:
      nextTimestamp in interface org.hibernate.cache.spi.Region
    • getTimeout

      public int getTimeout()
      Specified by:
      getTimeout in interface org.hibernate.cache.spi.Region
    • get

      public Object get(Object key) throws org.hibernate.cache.CacheException
      Specified by:
      get in interface org.hibernate.cache.spi.GeneralDataRegion
      Throws:
      org.hibernate.cache.CacheException
    • put

      public void put(Object key, Object value) throws org.hibernate.cache.CacheException
      Specified by:
      put in interface org.hibernate.cache.spi.GeneralDataRegion
      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.GeneralDataRegion
      Throws:
      org.hibernate.cache.CacheException
    • evictAll

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