Interface RegionCache

All Superinterfaces:
org.hibernate.cache.spi.ExtendedStatisticsSupport, org.hibernate.cache.spi.Region
All Known Implementing Classes:
IMapRegionCache, LocalRegionCache, TimestampsRegionCache

public interface RegionCache extends org.hibernate.cache.spi.Region, org.hibernate.cache.spi.ExtendedStatisticsSupport
This interface defines an internal cached region implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterUpdate(Object key, Object newValue, Object newVersion)
     
    default void
     
    boolean
     
    default void
     
    void
     
    void
     
    get(Object key, long txTimestamp)
     
    default long
    Hazelcast does not support pushing elements to disk.
    default long
     
    boolean
    put(Object key, Object value, long txTimestamp, Object version)
     
    void
    unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock)
     

    Methods inherited from interface org.hibernate.cache.spi.ExtendedStatisticsSupport

    getElementCountInMemory, getSizeInMemory

    Methods inherited from interface org.hibernate.cache.spi.Region

    getName, getRegionFactory
  • Method Details

    • afterUpdate

      void afterUpdate(Object key, Object newValue, Object newVersion)
    • clear

      default void clear()
      Specified by:
      clear in interface org.hibernate.cache.spi.Region
    • contains

      boolean contains(Object key)
    • destroy

      default void destroy()
      Specified by:
      destroy in interface org.hibernate.cache.spi.Region
    • evictData

      void evictData()
    • evictData

      void evictData(Object key)
    • get

      Object get(Object key, long txTimestamp)
    • getElementCountOnDisk

      default long getElementCountOnDisk()
      Hazelcast does not support pushing elements to disk.
      Specified by:
      getElementCountOnDisk in interface org.hibernate.cache.spi.ExtendedStatisticsSupport
      Returns:
      -1 this value means "unsupported"
    • nextTimestamp

      default long nextTimestamp()
    • put

      boolean put(Object key, Object value, long txTimestamp, Object version)
    • unlockItem

      void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock)