Class HazelcastStorageAccessImpl

java.lang.Object
com.hazelcast.hibernate.HazelcastStorageAccessImpl
All Implemented Interfaces:
HazelcastStorageAccess, org.hibernate.cache.spi.support.DomainDataStorageAccess, org.hibernate.cache.spi.support.StorageAccess

public class HazelcastStorageAccessImpl extends Object implements HazelcastStorageAccess
A custom DomainDataStorageAccess implementation delegating to one of Hazelcast RegionCache implementations.
  • Method Details

    • afterUpdate

      public void afterUpdate(Object key, Object newValue, Object newVersion)
      Specified by:
      afterUpdate in interface HazelcastStorageAccess
    • contains

      public boolean contains(Object key)
      Specified by:
      contains in interface org.hibernate.cache.spi.support.StorageAccess
    • evictData

      public void evictData() throws org.hibernate.cache.CacheException
      Specified by:
      evictData in interface org.hibernate.cache.spi.support.StorageAccess
      Throws:
      org.hibernate.cache.CacheException
    • evictData

      public void evictData(Object key) throws org.hibernate.cache.CacheException
      Specified by:
      evictData in interface org.hibernate.cache.spi.support.StorageAccess
      Throws:
      org.hibernate.cache.CacheException
    • getFromCache

      public Object getFromCache(Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.cache.CacheException
      Specified by:
      getFromCache in interface org.hibernate.cache.spi.support.StorageAccess
      Throws:
      org.hibernate.cache.CacheException
    • putIntoCache

      public void putIntoCache(Object key, Object value, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.cache.CacheException
      Specified by:
      putIntoCache in interface org.hibernate.cache.spi.support.StorageAccess
      Throws:
      org.hibernate.cache.CacheException
    • release

      public void release()
      Specified by:
      release in interface org.hibernate.cache.spi.support.StorageAccess
    • unlockItem

      public void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock)
      Specified by:
      unlockItem in interface HazelcastStorageAccess