public interface TimestampsCache extends UpdateTimestampsCache
TimestampsRegion
adding handling of stale resultsModifier and Type | Method and Description |
---|---|
default void |
clear()
Clear the update-timestamps data.
|
default void |
destroy()
Destroys the cache.
|
TimestampsRegion |
getRegion()
The region used to store all timestamps data
|
default void |
invalidate(Serializable[] spaces,
SharedSessionContractImplementor session)
Perform invalidation.
|
void |
invalidate(String[] spaces,
SharedSessionContractImplementor session)
Perform invalidation of the passed spaces (table names)
against the timestamps region data
|
default boolean |
isUpToDate(Set<Serializable> spaces,
Long timestamp,
SharedSessionContractImplementor session)
Perform an up-to-date check for the given set of query spaces.
|
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.
|
default void |
preInvalidate(Serializable[] spaces,
SharedSessionContractImplementor session)
Perform pre-invalidation.
|
void |
preInvalidate(String[] spaces,
SharedSessionContractImplementor session)
Perform pre-invalidation of the passed spaces (table names)
against the timestamps region data
|
TimestampsRegion getRegion()
getRegion
in interface UpdateTimestampsCache
void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
void invalidate(String[] spaces, SharedSessionContractImplementor session)
boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)
spaces
- The spaces to checktimestamp
- The timestamp from the transaction when the query results were cached.session
- The session whether this check originated.default void preInvalidate(Serializable[] spaces, SharedSessionContractImplementor session)
UpdateTimestampsCache
preInvalidate
in interface UpdateTimestampsCache
spaces
- The spaces to pre-invalidatedefault void invalidate(Serializable[] spaces, SharedSessionContractImplementor session)
UpdateTimestampsCache
invalidate
in interface UpdateTimestampsCache
spaces
- The spaces to invalidate.default boolean isUpToDate(Set<Serializable> spaces, Long timestamp, SharedSessionContractImplementor session)
UpdateTimestampsCache
isUpToDate
in interface UpdateTimestampsCache
spaces
- The spaces to checktimestamp
- The timestamp against which to check.default void clear() throws CacheException
UpdateTimestampsCache
clear
in interface UpdateTimestampsCache
CacheException
- Indicates problem delegating call to underlying region.default void destroy()
UpdateTimestampsCache
destroy
in interface UpdateTimestampsCache
Copyright © 2019 JBoss by Red Hat. All rights reserved.