Package org.hibernate.cache.internal
Class TimestampsCacheEnabledImpl
- java.lang.Object
-
- org.hibernate.cache.internal.TimestampsCacheEnabledImpl
-
- All Implemented Interfaces:
TimestampsCache
public class TimestampsCacheEnabledImpl extends Object implements TimestampsCache
Standard implementation of TimestampsCache
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUG_ENABLED
-
Constructor Summary
Constructors Constructor Description TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampsRegiongetRegion()The region used to store all timestamp data.voidinvalidate(String[] spaces, SharedSessionContractImplementor session)Perform invalidation of the passed spaces (table names) against the timestamp region data.booleanisUpToDate(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.booleanisUpToDate(Collection<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.voidpreInvalidate(String[] spaces, SharedSessionContractImplementor session)Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.cache.spi.TimestampsCache
clear, destroy
-
-
-
-
Constructor Detail
-
TimestampsCacheEnabledImpl
public TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)
-
-
Method Detail
-
getRegion
public TimestampsRegion getRegion()
Description copied from interface:TimestampsCacheThe region used to store all timestamp data.- Specified by:
getRegionin interfaceTimestampsCache
-
preInvalidate
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCachePerform pre-invalidation of the passed spaces (table names) against the timestamp region data.- Specified by:
preInvalidatein interfaceTimestampsCache
-
invalidate
public void invalidate(String[] spaces, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCachePerform invalidation of the passed spaces (table names) against the timestamp region data.- Specified by:
invalidatein interfaceTimestampsCache
-
isUpToDate
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCachePerform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- Specified by:
isUpToDatein interfaceTimestampsCache
-
isUpToDate
public boolean isUpToDate(Collection<String> spaces, Long timestamp, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCachePerform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- Specified by:
isUpToDatein interfaceTimestampsCache
-
-