Package net.sf.ehcache.hibernate.regions
Class EhcacheTimestampsRegion
- java.lang.Object
-
- net.sf.ehcache.hibernate.regions.EhcacheDataRegion
-
- 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
Constructors Constructor Description EhcacheTimestampsRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache underlyingCache, java.util.Properties properties)Constructs an EhcacheTimestampsRegion around the given underlying cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevict(java.lang.Object key)voidevictAll()java.lang.Objectget(java.lang.Object key)voidput(java.lang.Object key, java.lang.Object value)-
Methods inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion
contains, destroy, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
-
-
-
-
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:
getin interfaceorg.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:
putin interfaceorg.hibernate.cache.GeneralDataRegion- Throws:
org.hibernate.cache.CacheException
-
evict
public void evict(java.lang.Object key) throws org.hibernate.cache.CacheException- Specified by:
evictin interfaceorg.hibernate.cache.GeneralDataRegion- Throws:
org.hibernate.cache.CacheException
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Specified by:
evictAllin interfaceorg.hibernate.cache.GeneralDataRegion- Throws:
org.hibernate.cache.CacheException
-
-