public class TimestampsCacheEnabledImpl extends Object implements TimestampsCache
Constructor and Description |
---|
TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion) |
Modifier and Type | Method and Description |
---|---|
TimestampsRegion |
getRegion()
The region used to store all timestamps data
|
void |
invalidate(String[] spaces,
SharedSessionContractImplementor session)
Perform invalidation of the passed spaces (table names)
against the timestamps region data
|
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.
|
void |
preInvalidate(String[] spaces,
SharedSessionContractImplementor session)
Perform pre-invalidation of the passed spaces (table names)
against the timestamps region data
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, destroy, invalidate, isUpToDate, preInvalidate
public TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)
public TimestampsRegion getRegion()
TimestampsCache
getRegion
in interface TimestampsCache
getRegion
in interface UpdateTimestampsCache
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
TimestampsCache
preInvalidate
in interface TimestampsCache
public void invalidate(String[] spaces, SharedSessionContractImplementor session)
TimestampsCache
invalidate
in interface TimestampsCache
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)
TimestampsCache
isUpToDate
in interface TimestampsCache
spaces
- The spaces to checktimestamp
- The timestamp from the transaction when the query results were cached.session
- The session whether this check originated.Copyright © 2019 JBoss by Red Hat. All rights reserved.