Package org.hibernate.cache.spi
Interface TimestampsCache
-
- All Known Implementing Classes:
TimestampsCacheDisabledImpl
,TimestampsCacheEnabledImpl
public interface TimestampsCache
Wrapper for aTimestampsRegion
adding handling of stale results
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
clear()
default void
destroy()
TimestampsRegion
getRegion()
The region used to store all timestamps datavoid
invalidate(String[] spaces, SharedSessionContractImplementor session)
Perform invalidation of the passed spaces (table names) against the timestamps region databoolean
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.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.void
preInvalidate(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()
-
-