org.hibernate.cache.infinispan.timestamp
Class ClusteredTimestampsRegionImpl
java.lang.Object
org.hibernate.cache.infinispan.impl.BaseRegion
org.hibernate.cache.infinispan.impl.BaseGeneralDataRegion
org.hibernate.cache.infinispan.timestamp.TimestampsRegionImpl
org.hibernate.cache.infinispan.timestamp.ClusteredTimestampsRegionImpl
- All Implemented Interfaces:
- GeneralDataRegion, Region, TimestampsRegion
public class ClusteredTimestampsRegionImpl
- extends TimestampsRegionImpl
Timestamp cache region for clustered environments.
- Since:
- 4.1
Fields inherited from class org.hibernate.cache.infinispan.impl.BaseRegion |
cache |
Method Summary |
void |
destroy()
The "end state" contract of the region's lifecycle. |
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 org.infinispan.AdvancedCache |
getTimestampsPutCache(org.infinispan.AdvancedCache cache)
|
void |
invalidateRegion()
|
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 |
Methods inherited from class org.hibernate.cache.infinispan.impl.BaseRegion |
checkValid, contains, getCache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, getTransactionManager, isTransactionAware, isValid, nextTimestamp, resume, suspend, toMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusteredTimestampsRegionImpl
public ClusteredTimestampsRegionImpl(org.infinispan.AdvancedCache cache,
String name,
RegionFactory factory)
getTimestampsPutCache
protected org.infinispan.AdvancedCache getTimestampsPutCache(org.infinispan.AdvancedCache cache)
- Overrides:
getTimestampsPutCache
in class TimestampsRegionImpl
get
public Object get(Object key)
throws CacheException
- Description copied from interface:
GeneralDataRegion
- Get an item from the cache.
- Specified by:
get
in interface GeneralDataRegion
- Overrides:
get
in class TimestampsRegionImpl
- Parameters:
key
- The key of the item to be retrieved.
- Returns:
- the cached object or null
- Throws:
CacheException
- Indicates a problem accessing the item or region.
evictAll
public void evictAll()
throws CacheException
- Description copied from interface:
GeneralDataRegion
- Evict all contents of this particular cache region (without regard for transaction
isolation).
- Specified by:
evictAll
in interface GeneralDataRegion
- Overrides:
evictAll
in class TimestampsRegionImpl
- Throws:
CacheException
- Indicates problem accessing the region.
invalidateRegion
public void invalidateRegion()
- Overrides:
invalidateRegion
in class BaseRegion
destroy
public void destroy()
throws CacheException
- Description copied from interface:
Region
- The "end state" contract of the region's lifecycle. Called
during
SessionFactory.close()
to give
the region a chance to cleanup.
- Specified by:
destroy
in interface Region
- Overrides:
destroy
in class BaseRegion
- Throws:
CacheException
- Indicates problem shutting down
nodeModified
public void nodeModified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent event)
- Monitors cache events and updates the local cache
- Parameters:
event
-
nodeRemoved
public void nodeRemoved(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent event)
- Monitors cache events and updates the local cache
- Parameters:
event
-
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.