public abstract class BaseRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.RegionAccessStrategy
| Constructor and Description |
|---|
BaseRegionAccessStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(Object key) |
void |
evictAll() |
Object |
get(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
long txTimestamp) |
protected abstract org.hibernate.testing.cache.BaseGeneralDataRegion |
getInternalRegion() |
protected abstract boolean |
isDefaultMinimalPutOverride() |
org.hibernate.cache.spi.access.SoftLock |
lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockRegion()
Region locks are not supported.
|
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
void |
remove(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key)
A no-op since this is an asynchronous cache access strategy.
|
void |
removeAll()
Called to evict data from the entire region
|
void |
unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
Region locks are not supported - perform a cache clear as a precaution.
|
protected abstract org.hibernate.testing.cache.BaseGeneralDataRegion getInternalRegion()
protected abstract boolean isDefaultMinimalPutOverride()
public Object get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version)
throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.access.SoftLock lockRegion()
throws org.hibernate.cache.CacheException
Region locks are not supported.
lockRegion in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionRegionAccessStrategy.lockRegion(),
RegionAccessStrategy.lockRegion()public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
Region locks are not supported - perform a cache clear as a precaution.
unlockRegion in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionRegionAccessStrategy.unlockRegion(org.hibernate.cache.spi.access.SoftLock),
RegionAccessStrategy.unlockRegion(org.hibernate.cache.spi.access.SoftLock)public org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version)
throws org.hibernate.cache.CacheException
lockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void remove(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key)
throws org.hibernate.cache.CacheException
A no-op since this is an asynchronous cache access strategy.
remove in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionRegionAccessStrategy.remove(SharedSessionContractImplementor, Object)public void removeAll()
throws org.hibernate.cache.CacheException
Called to evict data from the entire region
removeAll in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheException - Propogated from underlying RegionRegionAccessStrategy.removeAll(),
RegionAccessStrategy.removeAll()public void evict(Object key) throws org.hibernate.cache.CacheException
evict in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evictAll()
throws org.hibernate.cache.CacheException
evictAll in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.