public abstract class AbstractMemcachedAccessStrategy<T extends AbstractMemcachedRegion> extends Object
| Constructor and Description |
|---|
AbstractMemcachedAccessStrategy(T region,
org.hibernate.boot.spi.SessionFactoryOptions settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(Object key)
Remove the given mapping without regard to transactional safety
|
void |
evictAll()
Remove all mappings without regard to transactional safety
|
T |
getRegion() |
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)
This method is a placeholder for method signatures supplied by interfaces pulled in further down the class
hierarchy.
|
abstract boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
This method is a placeholder for method signatures supplied by interfaces pulled in further down the class
hierarchy.
|
protected MemcachedCache |
region() |
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
|
protected org.hibernate.boot.spi.SessionFactoryOptions |
settings()
The settings for this persistence unit.
|
void |
unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
Region locks are not supported - perform a cache clear as a precaution.
|
protected final T extends AbstractMemcachedRegion region
public AbstractMemcachedAccessStrategy(T region, org.hibernate.boot.spi.SessionFactoryOptions settings)
protected MemcachedCache region()
protected org.hibernate.boot.spi.SessionFactoryOptions settings()
public final boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version)
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic abstract boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.access.SoftLock lockRegion()
public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionRegionAccessStrategy.unlockRegion(org.hibernate.cache.spi.access.SoftLock),
RegionAccessStrategy.unlockRegion(org.hibernate.cache.spi.access.SoftLock)public void remove(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key)
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void removeAll()
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void evict(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void evictAll()
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic T getRegion()
Copyright © 2017. All rights reserved.