ehcache

net.sf.ehcache.hibernate.regions
Class EhcacheTimestampsRegion

java.lang.Object
  extended by net.sf.ehcache.hibernate.regions.EhcacheDataRegion
      extended by net.sf.ehcache.hibernate.regions.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

Field Summary
 
Fields inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion
accessStrategyFactory, cache
 
Constructor Summary
EhcacheTimestampsRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache underlyingCache, Properties properties)
          Constructs an EhcacheTimestampsRegion around the given underlying cache.
 
Method Summary
 void evict(Object key)
          
 void evictAll()
          
 Object get(Object key)
          
 void put(Object key, Object value)
          
 
Methods inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion
contains, destroy, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.cache.GeneralDataRegion
evict, evictAll, get, put
 
Methods inherited from interface org.hibernate.cache.Region
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
 

Constructor Detail

EhcacheTimestampsRegion

public EhcacheTimestampsRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
                               Ehcache underlyingCache,
                               Properties properties)
Constructs an EhcacheTimestampsRegion around the given underlying cache.

Parameters:
accessStrategyFactory -
Method Detail

get

public Object get(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(Object key,
                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(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

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.