TimestampsCache
instead@Deprecated public interface UpdateTimestampsCache
Tracks 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.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Clear the update-timestamps data.
|
void |
destroy()
Deprecated.
Destroys the cache.
|
TimestampsRegion |
getRegion()
Deprecated.
Get the underlying cache region where data is stored..
|
void |
invalidate(Serializable[] spaces,
SharedSessionContractImplementor session)
Deprecated.
Perform invalidation.
|
boolean |
isUpToDate(Set<Serializable> spaces,
Long timestamp,
SharedSessionContractImplementor session)
Deprecated.
Perform an up-to-date check for the given set of query spaces.
|
void |
preInvalidate(Serializable[] spaces,
SharedSessionContractImplementor session)
Deprecated.
Perform pre-invalidation.
|
TimestampsRegion getRegion()
Get the underlying cache region where data is stored..
void preInvalidate(Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException
Perform pre-invalidation.
spaces
- The spaces to pre-invalidateCacheException
- Indicated problem delegating to underlying region.void invalidate(Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException
Perform invalidation.
spaces
- The spaces to invalidate.session
- CacheException
- Indicated problem delegating to underlying region.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.void clear() throws CacheException
Clear the update-timestamps data.
CacheException
- Indicates problem delegating call to underlying region.void destroy()
Destroys the cache.
CacheException
- Indicates problem delegating call to underlying region.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.