Package org.hibernate.cache.spi
Interface TimestampsCache
-
- All Known Implementing Classes:
TimestampsCacheDisabledImpl,TimestampsCacheEnabledImpl
public interface TimestampsCacheWrapper for aTimestampsRegionadding handling of stale results
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclear()default voiddestroy()TimestampsRegiongetRegion()The region used to store all timestamps datavoidinvalidate(String[] spaces, SharedSessionContractImplementor session)Perform invalidation of the passed spaces (table names) against the timestamps region databooleanisUpToDate(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 timestamps region data
-
-
-
Method Detail
-
getRegion
TimestampsRegion getRegion()
The region used to store all timestamps data
-
preInvalidate
void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
Perform pre-invalidation of the passed spaces (table names) against the timestamps region data
-
invalidate
void invalidate(String[] spaces, SharedSessionContractImplementor session)
Perform invalidation of the passed spaces (table names) against the timestamps region data
-
isUpToDate
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.
-
isUpToDate
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.
-
clear
default void clear() throws CacheException- Throws:
CacheException
-
destroy
default void destroy()
-
-