接口 UpdateTimestampsCache
-
- 所有已知子接口:
TimestampsCache
@Deprecated public interface UpdateTimestampsCache
已过时。UseTimestampsCacheinsteadTracks the timestamps of the most recent updates to particular tables. It is important that the cache timeout of the underlying cache implementation be set to a higher value than the timeouts of any of the query caches. In fact, we recommend that the the underlying cache not be configured for expiry at all. Note, in particular, that an LRU cache expiry policy is never appropriate.- 作者:
- Gavin King, Mikheil Kapanadze
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 voidclear()已过时。Clear the update-timestamps data.voiddestroy()已过时。Destroys the cache.TimestampsRegiongetRegion()已过时。Get the underlying cache region where data is stored..voidinvalidate(Serializable[] spaces, SharedSessionContractImplementor session)已过时。Perform invalidation.booleanisUpToDate(Set<Serializable> spaces, Long timestamp, SharedSessionContractImplementor session)已过时。Perform an up-to-date check for the given set of query spaces.voidpreInvalidate(Serializable[] spaces, SharedSessionContractImplementor session)已过时。Perform pre-invalidation.
-
-
-
方法详细资料
-
getRegion
TimestampsRegion getRegion()
已过时。Get the underlying cache region where data is stored..- 返回:
- The underlying region.
-
preInvalidate
void preInvalidate(Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException
已过时。Perform pre-invalidation.- 参数:
spaces- The spaces to pre-invalidate- 抛出:
CacheException- Indicated problem delegating to underlying region.
-
invalidate
void invalidate(Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException
已过时。Perform invalidation.- 参数:
spaces- The spaces to invalidate.session-- 抛出:
CacheException- Indicated problem delegating to underlying region.
-
isUpToDate
boolean isUpToDate(Set<Serializable> spaces, Long timestamp, SharedSessionContractImplementor session) throws CacheException
已过时。Perform an up-to-date check for the given set of query spaces.- 参数:
spaces- The spaces to checktimestamp- The timestamp against which to check.- 抛出:
CacheException- Indicated problem delegating to underlying region.
-
clear
void clear() throws CacheException已过时。Clear the update-timestamps data.- 抛出:
CacheException- Indicates problem delegating call to underlying region.
-
destroy
void destroy()
已过时。Destroys the cache.- 抛出:
CacheException- Indicates problem delegating call to underlying region.
-
-