Package org.hibernate.cache
Class UpdateTimestampsCache
java.lang.Object
org.hibernate.cache.UpdateTimestampsCache
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddestroy()voidinvalidate(Serializable[] spaces) booleanisUpToDate(Set spaces, Long timestamp) voidpreinvalidate(Serializable[] spaces) toString()
-
Field Details
-
REGION_NAME
-
-
Constructor Details
-
UpdateTimestampsCache
- Throws:
HibernateException
-
-
Method Details
-
preinvalidate
- Throws:
CacheException
-
invalidate
- Throws:
CacheException
-
isUpToDate
- Throws:
HibernateException
-
clear
- Throws:
CacheException
-
destroy
public void destroy() -
getRegion
-
toString
-