public class TimestampsRegionImpl extends TransactionalDataRegionAdapter implements TimestampsRegion
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
metadata
currentView, internalFqn, invalidateState, invalidationMutex, ITEM, jbcCache, log, memberId, optimistic, regionFqn, regionName, regionRoot, regionRootMutex, replication, transactionManager
Constructor and Description |
---|
TimestampsRegionImpl(org.jboss.cache.Cache jbcCache,
String regionName,
String regionPrefix,
Properties properties)
Create a new TimestampsRegionImpl.
|
Modifier and Type | Method and Description |
---|---|
protected org.jboss.cache.Fqn<String> |
createRegionFqn(String regionName,
String regionPrefix) |
void |
destroy()
The "end state" contract of the region's lifecycle.
|
void |
evict(Object key)
Evict an item from the cache immediately (without regard for transaction
isolation).
|
void |
evictAll()
Evict all contents of this particular cache region (without regard for transaction
isolation).
|
Object |
get(Object key)
Get an item from the cache.
|
protected boolean |
handleEvictAllInvalidation(org.jboss.cache.notifications.event.NodeInvalidatedEvent event) |
protected boolean |
handleEvictAllModification(org.jboss.cache.notifications.event.NodeModifiedEvent event) |
void |
nodeModified(org.jboss.cache.notifications.event.NodeModifiedEvent event)
Monitors cache events and updates the local cache
|
void |
nodeRemoved(org.jboss.cache.notifications.event.NodeRemovedEvent event)
Monitors cache events and updates the local cache
|
void |
put(Object key,
Object value)
Put an item into the cache.
|
getCacheDataDescription, isTransactionAware
activateLocalClusterNode, checkValid, contains, deactivateLocalNode, ensureRegionRootExists, escapeRegionName, getCacheInstance, getElementCountInMemory, getElementCountOnDisk, getMemberId, getName, getNonLockingDataVersionOption, getRegionFqn, getSizeInMemory, getTimeout, getTypeFirstRegionFqn, getTypeLastRegionFqn, nextTimestamp, nodeInvalidated, resume, suspend, suspendAndGet, toMap, viewChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public static final String TYPE
public TimestampsRegionImpl(org.jboss.cache.Cache jbcCache, String regionName, String regionPrefix, Properties properties)
jbcCache
- The JBC cache instance to use to store the timestamps dataregionName
- The name of the region (within the JBC cache)regionPrefix
- Any region prefix to applyproperties
- The configuration properties.protected org.jboss.cache.Fqn<String> createRegionFqn(String regionName, String regionPrefix)
createRegionFqn
in class BasicRegionAdapter
public void evict(Object key) throws CacheException
GeneralDataRegion
evict
in interface GeneralDataRegion
key
- The key of the item to removeCacheException
- Indicates a problem accessing the item or region.public void evictAll() throws CacheException
GeneralDataRegion
evictAll
in interface GeneralDataRegion
CacheException
- Indicates problem accessing the region.public Object get(Object key) throws CacheException
GeneralDataRegion
get
in interface GeneralDataRegion
key
- The key of the item to be retrieved.CacheException
- Indicates a problem accessing the item or region.public void put(Object key, Object value) throws CacheException
GeneralDataRegion
put
in interface GeneralDataRegion
key
- The key under which to cache the item.value
- The item to cache.CacheException
- Indicates a problem accessing the region.public void destroy() throws CacheException
Region
SessionFactory.close()
to give
the region a chance to cleanup.destroy
in interface Region
destroy
in class BasicRegionAdapter
CacheException
- Indicates problem shutting downpublic void nodeModified(org.jboss.cache.notifications.event.NodeModifiedEvent event)
nodeModified
in class BasicRegionAdapter
event
- public void nodeRemoved(org.jboss.cache.notifications.event.NodeRemovedEvent event)
event
- protected boolean handleEvictAllInvalidation(org.jboss.cache.notifications.event.NodeInvalidatedEvent event)
handleEvictAllInvalidation
in class BasicRegionAdapter
protected boolean handleEvictAllModification(org.jboss.cache.notifications.event.NodeModifiedEvent event)
handleEvictAllModification
in class BasicRegionAdapter
Copyright © 2002-2013 Red Hat Middleware, LLC. All Rights Reserved