public class UpdateTimestampsCache
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REGION_NAME
The region name of the update-timestamps cache.
|
| Constructor and Description |
|---|
UpdateTimestampsCache(SessionFactoryImplementor sessionFactory,
TimestampsRegion region)
Constructs an UpdateTimestampsCache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the update-timestamps data.
|
void |
destroy()
Destroys the cache.
|
TimestampsRegion |
getRegion()
Get the underlying cache region where data is stored..
|
void |
invalidate(java.io.Serializable[] spaces,
SharedSessionContractImplementor session)
Perform invalidation.
|
boolean |
isUpToDate(java.util.Set<java.io.Serializable> spaces,
java.lang.Long timestamp,
SharedSessionContractImplementor session)
Perform an up-to-date check for the given set of query spaces.
|
void |
preInvalidate(java.io.Serializable[] spaces,
SharedSessionContractImplementor session)
Perform pre-invalidation.
|
java.lang.String |
toString() |
public static final java.lang.String REGION_NAME
public UpdateTimestampsCache(SessionFactoryImplementor sessionFactory, TimestampsRegion region)
sessionFactory - The SessionFactoryregion - The underlying second level cache region to use.public void preInvalidate(java.io.Serializable[] spaces,
SharedSessionContractImplementor session)
throws CacheException
spaces - The spaces to pre-invalidatesession - CacheException - Indicated problem delegating to underlying region.public void invalidate(java.io.Serializable[] spaces,
SharedSessionContractImplementor session)
throws CacheException
spaces - The spaces to invalidate.session - CacheException - Indicated problem delegating to underlying region.public boolean isUpToDate(java.util.Set<java.io.Serializable> spaces,
java.lang.Long timestamp,
SharedSessionContractImplementor session)
throws CacheException
spaces - The spaces to checktimestamp - The timestamp against which to check.session - CacheException - Indicated problem delegating to underlying region.public void clear()
throws CacheException
CacheException - Indicates problem delegating call to underlying region.public void destroy()
CacheException - Indicates problem delegating call to underlying region.public TimestampsRegion getRegion()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.