public class UpdateTimestampsCache extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REGION_NAME
The region name of the update-timestamps cache.
|
Constructor and Description |
---|
UpdateTimestampsCache(SessionFactoryOptions settings,
Properties props)
Constructs an UpdateTimestampsCache.
|
UpdateTimestampsCache(SessionFactoryOptions settings,
Properties props,
SessionFactoryImplementor factory)
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(Serializable[] spaces,
SessionImplementor session)
Perform invalidation.
|
boolean |
isUpToDate(Set<Serializable> spaces,
Long timestamp,
SessionImplementor session)
Perform an up-to-date check for the given set of query spaces.
|
void |
preInvalidate(Serializable[] spaces,
SessionImplementor session)
Perform pre-invalidation.
|
String |
toString() |
public static final String REGION_NAME
public UpdateTimestampsCache(SessionFactoryOptions settings, Properties props, SessionFactoryImplementor factory)
settings
- The SessionFactory settingsprops
- Any propertiesfactory
- The SessionFactorypublic UpdateTimestampsCache(SessionFactoryOptions settings, Properties props)
settings
- The SessionFactory settingsprops
- Any propertiespublic void preInvalidate(Serializable[] spaces, SessionImplementor session) throws CacheException
spaces
- The spaces to pre-invalidatesession
- CacheException
- Indicated problem delegating to underlying region.public void invalidate(Serializable[] spaces, SessionImplementor session) throws CacheException
spaces
- The spaces to pre-invalidatesession
- CacheException
- Indicated problem delegating to underlying region.public boolean isUpToDate(Set<Serializable> spaces, Long timestamp, SessionImplementor 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()
Copyright © 2016 JBoss by Red Hat. All rights reserved.