org.hibernate.cache
Class UpdateTimestampsCache
java.lang.Object
org.hibernate.cache.UpdateTimestampsCache
public class UpdateTimestampsCache
- extends Object
Tracks the timestamps of the most recent updates to particular tables. It is
important that the cache timeout of the underlying cache implementation be set
to a higher value than the timeouts of any of the query caches. In fact, we
recommend that the the underlying cache not be configured for expiry at all.
Note, in particular, that an LRU cache expiry policy is never appropriate.
- Author:
- Gavin King, Mikheil Kapanadze
REGION_NAME
public static final String REGION_NAME
UpdateTimestampsCache
public UpdateTimestampsCache(Settings settings,
Properties props)
throws HibernateException
- Throws:
HibernateException
clear
public void clear()
throws CacheException
- Throws:
CacheException
preinvalidate
public void preinvalidate(Serializable[] spaces)
throws CacheException
- Throws:
CacheException
invalidate
public void invalidate(Serializable[] spaces)
throws CacheException
- Throws:
CacheException
isUpToDate
public boolean isUpToDate(Set spaces,
Long timestamp)
throws HibernateException
- Throws:
HibernateException
destroy
public void destroy()
getCache
public Cache getCache()
getRegionName
public String getRegionName()
toString
public String toString()
- Overrides:
toString
in class Object