Top Description Methods
org.hibernate.cache.spi

public Interface TimestampsCache

Known Direct Implementers
org.hibernate.cache.internal.TimestampsCacheDisabledImpl, org.hibernate.cache.internal.TimestampsCacheEnabledImpl
Imports
java.util.Collection, org.hibernate.cache.CacheException, org.hibernate.engine.spi.SharedSessionContractImplementor

Tracks invalidation of "query spaces" (tables) for the purpose of determining if a cached query result set is stale. Implementations use a special region the second-level cache to store invalidation timestamps.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default void
public default void
public TimestampsRegion
getRegion()

The region used to store all timestamp data.

public void
invalidate(String[] spaces, SharedSessionContractImplementor session)

Perform invalidation of the passed spaces (table names) against the timestamp region data.

public boolean
isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)

Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.

public boolean
isUpToDate(Collection<String> spaces, Long timestamp, SharedSessionContractImplementor session)

Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.

public void
preInvalidate(String[] spaces, SharedSessionContractImplementor session)

Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.

Method Detail

clearback to summary
public default void clear() throws CacheException
destroyback to summary
public default void destroy()
getRegionback to summary
public TimestampsRegion getRegion()

The region used to store all timestamp data.

invalidateback to summary
public void invalidate(String[] spaces, SharedSessionContractImplementor session)

Perform invalidation of the passed spaces (table names) against the timestamp region data.

isUpToDateback to summary
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)

Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.

isUpToDateback to summary
public boolean isUpToDate(Collection<String> spaces, Long timestamp, SharedSessionContractImplementor session)

Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.

preInvalidateback to summary
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)

Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.