public class TimestampsRegionImpl extends BaseGeneralDataRegion implements TimestampsRegion
address, cacheAdapter, invalidateState, invalidationMutex, replication, transactionManager
Constructor and Description |
---|
TimestampsRegionImpl(CacheAdapter cacheAdapter,
String name,
TransactionManager transactionManager,
RegionFactory factory) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
invalidateRegion() |
void |
nodeModified(CacheEntryModifiedEvent event)
Monitors cache events and updates the local cache
|
void |
nodeRemoved(CacheEntryRemovedEvent event)
Monitors cache events and updates the local cache
|
void |
put(Object key,
Object value)
Put an item into the cache.
|
checkValid, contains, get, getAddress, getCacheAdapter, getElementCountInMemory, getElementCountOnDisk, getName, getOwnerForPut, getSizeInMemory, getTimeout, getTransactionManager, isValid, nextTimestamp, resume, suspend, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public TimestampsRegionImpl(CacheAdapter cacheAdapter, String name, TransactionManager transactionManager, RegionFactory factory)
public void evict(Object key) throws CacheException
GeneralDataRegion
evict
in interface GeneralDataRegion
evict
in class BaseGeneralDataRegion
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
evictAll
in class BaseGeneralDataRegion
CacheException
- Indicates problem accessing the region.public Object get(Object key) throws CacheException
GeneralDataRegion
get
in interface GeneralDataRegion
get
in class BaseGeneralDataRegion
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
put
in class BaseGeneralDataRegion
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 BaseRegion
CacheException
- Indicates problem shutting downpublic void nodeModified(CacheEntryModifiedEvent event)
event
- public void nodeRemoved(CacheEntryRemovedEvent event)
event
- public void invalidateRegion()
invalidateRegion
in class BaseRegion
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.