Package org.hibernate.cache.spi
Interface UpdateTimestampsCache
-
- All Known Subinterfaces:
TimestampsCache
@Deprecated public interface UpdateTimestampsCache
Deprecated.UseTimestampsCache
insteadTracks 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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(java.io.Serializable[] spaces, SharedSessionContractImplementor session)
Deprecated.Perform invalidation.boolean
isUpToDate(java.util.Set<java.io.Serializable> spaces, java.lang.Long timestamp, SharedSessionContractImplementor session)
Deprecated.Perform an up-to-date check for the given set of query spaces.void
preInvalidate(java.io.Serializable[] spaces, SharedSessionContractImplementor session)
Deprecated.Perform pre-invalidation.
-
-
-
Method Detail
-
getRegion
TimestampsRegion getRegion()
Deprecated.Get the underlying cache region where data is stored..- Returns:
- The underlying region.
-
preInvalidate
void preInvalidate(java.io.Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException
Deprecated.Perform pre-invalidation.- Parameters:
spaces
- The spaces to pre-invalidate- Throws:
CacheException
- Indicated problem delegating to underlying region.
-
invalidate
void invalidate(java.io.Serializable[] spaces, SharedSessionContractImplementor session) throws CacheException
Deprecated.Perform invalidation.- Parameters:
spaces
- The spaces to invalidate.session
-- Throws:
CacheException
- Indicated problem delegating to underlying region.
-
isUpToDate
boolean isUpToDate(java.util.Set<java.io.Serializable> spaces, java.lang.Long timestamp, SharedSessionContractImplementor session) throws CacheException
Deprecated.Perform an up-to-date check for the given set of query spaces.- Parameters:
spaces
- The spaces to checktimestamp
- The timestamp against which to check.- Throws:
CacheException
- Indicated problem delegating to underlying region.
-
clear
void clear() throws CacheException
Deprecated.Clear the update-timestamps data.- Throws:
CacheException
- Indicates problem delegating call to underlying region.
-
destroy
void destroy()
Deprecated.Destroys the cache.- Throws:
CacheException
- Indicates problem delegating call to underlying region.
-
-