Interface TimestampsCache
public interface TimestampsCache
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.
- A query space is invalidated in the
TimestampsCachewhen a SQL DML statement executed by Hibernate affects the corresponding table. - A cached query result set is checked for
staleness against the
TimestampsCachewhen it is read from aQueryResultsRegionby aQueryResultsCache.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()default voiddestroy()Deprecated, for removal: This API element is subject to removal in a future version.This noop method is never calledDeprecated.This method is never called.voidinvalidate(String[] spaces, SharedSessionContractImplementor session) Perform invalidation of the passed spaces (table names) against the timestamp region data.booleanisUpToDate(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.booleanisUpToDate(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.voidpreInvalidate(String[] spaces, SharedSessionContractImplementor session) Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.
-
Method Details
-
getRegion
Deprecated.This method is never called.The region used to store all timestamp data, or null of the timestamp cache is not enabled. -
clear
- Throws:
CacheException
-
destroy
Deprecated, for removal: This API element is subject to removal in a future version.This noop method is never called
-