public class TimestampsRegionImpl extends BaseGeneralDataRegion implements TimestampsRegion
address, cacheAdapter, currentView, 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.
|
protected boolean |
handleEvictAllInvalidation(org.infinispan.notifications.cachelistener.event.CacheEntryInvalidatedEvent event) |
protected boolean |
handleEvictAllModification(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent event) |
void |
nodeModified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent event)
Monitors cache events and updates the local cache
|
void |
nodeRemoved(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent event)
Monitors cache events and updates the local cache
|
void |
put(Object key,
Object value)
Put an item into the cache.
|
checkValid, contains, entryInvalidated, entryModified, get, getAddress, getCacheAdapter, getElementCountInMemory, getElementCountOnDisk, getName, getOwnerForPut, getSizeInMemory, getTimeout, isValid, nextTimestamp, resume, start, suspend, toMap, viewChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMappublic TimestampsRegionImpl(CacheAdapter cacheAdapter, String name, TransactionManager transactionManager, RegionFactory factory)
public void evict(Object key) throws CacheException
GeneralDataRegionevict in interface GeneralDataRegionevict in class BaseGeneralDataRegionkey - The key of the item to removeCacheException - Indicates a problem accessing the item or region.public void evictAll()
throws CacheException
GeneralDataRegionevictAll in interface GeneralDataRegionevictAll in class BaseGeneralDataRegionCacheException - Indicates problem accessing the region.public Object get(Object key) throws CacheException
GeneralDataRegionget in interface GeneralDataRegionget in class BaseGeneralDataRegionkey - 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
GeneralDataRegionput in interface GeneralDataRegionput in class BaseGeneralDataRegionkey - 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
RegionSessionFactory.close() to give
the region a chance to cleanup.destroy in interface Regiondestroy in class BaseRegionCacheException - Indicates problem shutting downpublic void nodeModified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent event)
event - public void nodeRemoved(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent event)
event - protected boolean handleEvictAllModification(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent event)
handleEvictAllModification in class BaseRegionprotected boolean handleEvictAllInvalidation(org.infinispan.notifications.cachelistener.event.CacheEntryInvalidatedEvent event)
handleEvictAllInvalidation in class BaseRegionCopyright © 2002-2012 Red Hat Middleware, LLC. All Rights Reserved