public class ReadOnlyMemcachedEntityRegionAccessStrategy extends AbstractMemcachedAccessStrategy<MemcachedEntityRegion> implements org.hibernate.cache.spi.access.EntityRegionAccessStrategy
region| Constructor and Description |
|---|
ReadOnlyMemcachedEntityRegionAccessStrategy(MemcachedEntityRegion region,
org.hibernate.boot.spi.SessionFactoryOptions settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version) |
boolean |
afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion,
org.hibernate.cache.spi.access.SoftLock lock) |
Object |
generateCacheKey(Object id,
org.hibernate.persister.entity.EntityPersister persister,
org.hibernate.engine.spi.SessionFactoryImplementor factory,
String tenantIdentifier) |
Object |
get(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
long txTimestamp) |
Object |
getCacheKeyId(Object cacheKey) |
boolean |
insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version) |
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.
|
void |
unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
boolean |
update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion) |
evict, evictAll, getRegion, lockRegion, putFromLoad, region, remove, removeAll, settings, unlockRegionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ReadOnlyMemcachedEntityRegionAccessStrategy(MemcachedEntityRegion region, org.hibernate.boot.spi.SessionFactoryOptions settings)
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,
boolean minimalPutOverride)
throws org.hibernate.cache.CacheException
AbstractMemcachedAccessStrategyputFromLoad in interface org.hibernate.cache.spi.access.RegionAccessStrategyputFromLoad in class AbstractMemcachedAccessStrategy<MemcachedEntityRegion>org.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version)
throws UnsupportedOperationException
lockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategyUnsupportedOperationExceptionpublic void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
A no-op since this cache is read-only
unlockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version)
throws org.hibernate.cache.CacheException
This cache is asynchronous hence a no-op
insert in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version)
throws org.hibernate.cache.CacheException
afterInsert in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion)
throws UnsupportedOperationException
Throws UnsupportedOperationException since this cache is read-only
update in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyUnsupportedOperationException - alwayspublic boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion,
org.hibernate.cache.spi.access.SoftLock lock)
throws UnsupportedOperationException
Throws UnsupportedOperationException since this cache is read-only
afterUpdate in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyUnsupportedOperationException - alwayspublic Object generateCacheKey(Object id, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier)
generateCacheKey in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyCopyright © 2017. All rights reserved.