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 boolean
DEBUG_ENABLED
-
Constructor Summary
Constructors Constructor Description TimestampsCacheEnabledImpl(TimestampsRegion timestampsRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampsRegion
getRegion()
The region used to store all timestamp data.void
invalidate(String[] spaces, SharedSessionContractImplementor session)
Perform invalidation of the passed spaces (table names) against the timestamp 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.boolean
isUpToDate(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.void
preInvalidate(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:TimestampsCache
The region used to store all timestamp data.- Specified by:
getRegion
in interfaceTimestampsCache
-
preInvalidate
public void preInvalidate(String[] spaces, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform pre-invalidation of the passed spaces (table names) against the timestamp region data.- Specified by:
preInvalidate
in interfaceTimestampsCache
-
invalidate
public void invalidate(String[] spaces, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform invalidation of the passed spaces (table names) against the timestamp region data.- Specified by:
invalidate
in interfaceTimestampsCache
-
isUpToDate
public boolean isUpToDate(String[] spaces, Long timestamp, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- Specified by:
isUpToDate
in interfaceTimestampsCache
-
isUpToDate
public boolean isUpToDate(Collection<String> spaces, Long timestamp, SharedSessionContractImplementor session)
Description copied from interface:TimestampsCache
Perform an up-to-date check for the given set of query spaces as part of verifying the validity of cached query results.- Specified by:
isUpToDate
in interfaceTimestampsCache
-
-