Class EhcacheTimestampsRegion

  • All Implemented Interfaces:
    org.hibernate.cache.GeneralDataRegion, org.hibernate.cache.Region, org.hibernate.cache.TimestampsRegion

    public class EhcacheTimestampsRegion
    extends EhcacheDataRegion
    implements org.hibernate.cache.TimestampsRegion
    A timestamps region specific wrapper around an Ehcache instance.
    Author:
    Chris Dennis, Abhishek Sanoujam
    • Constructor Detail

      • EhcacheTimestampsRegion

        public EhcacheTimestampsRegion​(EhcacheAccessStrategyFactory accessStrategyFactory,
                                       Ehcache underlyingCache,
                                       java.util.Properties properties)
        Constructs an EhcacheTimestampsRegion around the given underlying cache.
        Parameters:
        accessStrategyFactory -
    • Method Detail

      • get

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

        public void put​(java.lang.Object key,
                        java.lang.Object value)
                 throws org.hibernate.cache.CacheException
        Specified by:
        put in interface org.hibernate.cache.GeneralDataRegion
        Throws:
        org.hibernate.cache.CacheException
      • evict

        public void evict​(java.lang.Object key)
                   throws org.hibernate.cache.CacheException
        Specified by:
        evict in interface org.hibernate.cache.GeneralDataRegion
        Throws:
        org.hibernate.cache.CacheException
      • evictAll

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