public class ReadOnlyAccess extends TransactionalAccess
| Constructor and Description |
|---|
ReadOnlyAccess(CollectionRegionImpl region)
Create a provider of read-only access to the specific region.
|
| Modifier and Type | Method and Description |
|---|---|
SoftLock |
lockItem(Object key,
Object version)
We are going to attempt to update/delete the keyed object.
|
SoftLock |
lockRegion()
Lock the entire region
|
void |
unlockItem(Object key,
SoftLock lock)
Called when we have finished the attempted update/delete (which may or
may not have been successful), after transaction completion.
|
void |
unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
region
|
evict, evictAll, get, getRegion, putFromLoad, putFromLoad, remove, removeAllpublic ReadOnlyAccess(CollectionRegionImpl region)
region - The region to which this provides access.public SoftLock lockItem(Object key, Object version) throws CacheException
lockItem in interface CollectionRegionAccessStrategylockItem in class TransactionalAccesskey - The key of the item to lockversion - The item's current version valueCacheException - Propogated from underlying Regionpublic SoftLock lockRegion() throws CacheException
lockRegion in interface CollectionRegionAccessStrategylockRegion in class TransactionalAccessCacheException - Propogated from underlying Regionpublic void unlockItem(Object key, SoftLock lock) throws CacheException
unlockItem in interface CollectionRegionAccessStrategyunlockItem in class TransactionalAccesskey - The item keylock - The lock previously obtained from CollectionRegionAccessStrategy.lockItem(java.lang.Object, java.lang.Object)CacheException - Propogated from underlying Regionpublic void unlockRegion(SoftLock lock) throws CacheException
unlockRegion in interface CollectionRegionAccessStrategyunlockRegion in class TransactionalAccesslock - The lock previously obtained from CollectionRegionAccessStrategy.lockRegion()CacheException - Propogated from underlying RegionCopyright © 2002-2013 Red Hat Middleware, LLC. All Rights Reserved