Top Description Fields Constructors Methods
org.hibernate.cache

public Class UpdateTimestampsCache

extends Object
Class Inheritance
Imports
java.io.Serializable, java.util.Properties, .Set, java.util.concurrent.locks.ReentrantReadWriteLock, org.slf4j.Logger, .LoggerFactory, org.hibernate.HibernateException, org.hibernate.cfg.Settings

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.
Authors
Gavin King, Mikheil Kapanadze

Field Summary

Modifier and TypeField and Description
private static final Logger
private ReentrantReadWriteLock
private final TimestampsRegion
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public TimestampsRegion
public void
public boolean
isUpToDate(Set<E> spaces, Long timestamp)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

logback to summary
private static final Logger log
readWriteLockback to summary
private ReentrantReadWriteLock readWriteLock
regionback to summary
private final TimestampsRegion region
REGION_NAMEback to summary
public static final String REGION_NAME

Constructor Detail

UpdateTimestampsCacheback to summary
public UpdateTimestampsCache(Settings settings, Properties props) throws HibernateException

Method Detail

clearback to summary
public void clear() throws CacheException
destroyback to summary
public void destroy()
getRegionback to summary
public TimestampsRegion getRegion()
invalidateback to summary
public void invalidate(Serializable[] spaces) throws CacheException
Annotations
@SuppressWarnings:UnnecessaryBoxing
isUpToDateback to summary
public boolean isUpToDate(Set<E> spaces, Long timestamp) throws HibernateException
Annotations
@SuppressWarnings:unchecked, UnnecessaryUnboxing
preinvalidateback to summary
public void preinvalidate(Serializable[] spaces) throws CacheException
Annotations
@SuppressWarnings:UnnecessaryBoxing
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.