Top Description Methods
org.hibernate.cache.spi

public Interface UpdateTimestampsCache

Known Direct Subinterfaces
org.hibernate.cache.spi.TimestampsCache
Annotations
@SuppressWarnings:unused
@Deprecated
Imports
java.io.Serializable, java.util.Set, org.hibernate.cache.CacheException, org.hibernate.engine.spi.SharedSessionContractImplementor

Deprecated

Use TimestampsCache instead

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

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clear the update-timestamps data.

public void
destroy()

Destroys the cache.

public TimestampsRegion

Returns:

The underlying region.
getRegion
()

Get the underlying cache region where data is stored..

public void
invalidate(Serializable[]
The spaces to invalidate.
spaces
,
SharedSessionContractImplementor session)

Perform invalidation.

public boolean
isUpToDate(Set<Serializable>
The spaces to check
spaces
,
Long
The timestamp against which to check.
timestamp
,
SharedSessionContractImplementor session)

Perform an up-to-date check for the given set of query spaces.

public void
preInvalidate(Serializable[]
The spaces to pre-invalidate
spaces
,
SharedSessionContractImplementor session)

Perform pre-invalidation.

Method Detail

clearback to summary
public void clear() throws CacheException

Clear the update-timestamps data.

Exceptions
CacheException:
Indicates problem delegating call to underlying region.
destroyback to summary
public void destroy()

Destroys the cache.

Exceptions
CacheException:
Indicates problem delegating call to underlying region.
getRegionback to summary
public TimestampsRegion getRegion()

Get the underlying cache region where data is stored..

Returns:TimestampsRegion

The underlying region.

invalidateback to summary
public void invalidate(Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException

Perform invalidation.

Parameters
spaces:Serializable[]

The spaces to invalidate.

Exceptions
CacheException:
Indicated problem delegating to underlying region.
isUpToDateback to summary
public boolean isUpToDate(Set<Serializable> spaces, Long timestamp, SharedSessionContractImplementor session) throws CacheException

Perform an up-to-date check for the given set of query spaces.

Parameters
spaces:Set<Serializable>

The spaces to check

timestamp:Long

The timestamp against which to check.

Exceptions
CacheException:
Indicated problem delegating to underlying region.
preInvalidateback to summary
public void preInvalidate(Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException

Perform pre-invalidation.

Parameters
spaces:Serializable[]

The spaces to pre-invalidate

Exceptions
CacheException:
Indicated problem delegating to underlying region.