接口 TimestampsCache
-
- 所有超级接口:
UpdateTimestampsCache
public interface TimestampsCache extends UpdateTimestampsCache
Wrapper for aTimestampsRegionadding handling of stale results- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default voidclear()Clear the update-timestamps data.default voiddestroy()Destroys the cache.TimestampsRegiongetRegion()The region used to store all timestamps datadefault voidinvalidate(Serializable[] spaces, SharedSessionContractImplementor session)Perform invalidation.voidinvalidate(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.default booleanisUpToDate(Set<Serializable> spaces, Long timestamp, SharedSessionContractImplementor session)Perform an up-to-date check for the given set of query spaces.default voidpreInvalidate(Serializable[] spaces, SharedSessionContractImplementor session)Perform pre-invalidation.voidpreInvalidate(String[] spaces, SharedSessionContractImplementor session)Perform pre-invalidation of the passed spaces (table names) against the timestamps region data
-
-
-
方法详细资料
-
getRegion
TimestampsRegion getRegion()
The region used to store all timestamps data- 指定者:
getRegion在接口中UpdateTimestampsCache- 返回:
- The underlying region.
-
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.- 参数:
spaces- The spaces to checktimestamp- The timestamp from the transaction when the query results were cached.session- The session whether this check originated.- 返回:
- Whether all those spaces are up-to-date
-
preInvalidate
default void preInvalidate(Serializable[] spaces, SharedSessionContractImplementor session)
从接口复制的说明:UpdateTimestampsCachePerform pre-invalidation.- 指定者:
preInvalidate在接口中UpdateTimestampsCache- 参数:
spaces- The spaces to pre-invalidate
-
invalidate
default void invalidate(Serializable[] spaces, SharedSessionContractImplementor session)
从接口复制的说明:UpdateTimestampsCachePerform invalidation.- 指定者:
invalidate在接口中UpdateTimestampsCache- 参数:
spaces- The spaces to invalidate.
-
isUpToDate
default boolean isUpToDate(Set<Serializable> spaces, Long timestamp, SharedSessionContractImplementor session)
从接口复制的说明:UpdateTimestampsCachePerform an up-to-date check for the given set of query spaces.- 指定者:
isUpToDate在接口中UpdateTimestampsCache- 参数:
spaces- The spaces to checktimestamp- The timestamp against which to check.
-
clear
default void clear() throws CacheException从接口复制的说明:UpdateTimestampsCacheClear the update-timestamps data.- 指定者:
clear在接口中UpdateTimestampsCache- 抛出:
CacheException- Indicates problem delegating call to underlying region.
-
destroy
default void destroy()
从接口复制的说明:UpdateTimestampsCacheDestroys the cache.- 指定者:
destroy在接口中UpdateTimestampsCache
-
-