|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.cache.infinispan.impl.BaseRegion
org.hibernate.cache.infinispan.impl.BaseGeneralDataRegion
org.hibernate.cache.infinispan.timestamp.TimestampsRegionImpl
public class TimestampsRegionImpl
Defines the behavior of the timestamps cache region for Infinispan.
| Field Summary |
|---|
| Fields inherited from class org.hibernate.cache.infinispan.impl.BaseRegion |
|---|
address, cacheAdapter, currentView, invalidateState, invalidationMutex, replication, transactionManager |
| Constructor Summary | |
|---|---|
TimestampsRegionImpl(CacheAdapter cacheAdapter,
String name,
TransactionManager transactionManager,
RegionFactory factory)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.hibernate.cache.infinispan.impl.BaseRegion |
|---|
checkValid, contains, entryInvalidated, entryModified, get, getAddress, getCacheAdapter, getElementCountInMemory, getElementCountOnDisk, getName, getOwnerForPut, getSizeInMemory, getTimeout, nextTimestamp, resume, start, suspend, toMap, viewChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.cache.Region |
|---|
contains, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap |
| Constructor Detail |
|---|
public TimestampsRegionImpl(CacheAdapter cacheAdapter,
String name,
TransactionManager transactionManager,
RegionFactory factory)
| Method Detail |
|---|
public void evict(Object key)
throws CacheException
GeneralDataRegion
evict in interface GeneralDataRegionevict in class BaseGeneralDataRegionkey - The key of the item to remove
CacheException - Indicates a problem accessing the item or region.
public void evictAll()
throws CacheException
GeneralDataRegion
evictAll in interface GeneralDataRegionevictAll in class BaseGeneralDataRegionCacheException - Indicates problem accessing the region.
public Object get(Object key)
throws CacheException
GeneralDataRegion
get 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
GeneralDataRegion
put 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 BaseRegion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||