public class ReadWriteJ2CacheCollectionRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
AbstractReadWriteJ2CacheAccessStrategy.Item |
protected static class |
AbstractReadWriteJ2CacheAccessStrategy.Lock |
protected static interface |
AbstractReadWriteJ2CacheAccessStrategy.Lockable |
| 构造器和说明 |
|---|
ReadWriteJ2CacheCollectionRegionAccessStrategy(J2CacheCollectionRegion region,
org.hibernate.cfg.Settings settings) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
decrementLock(Object key,
AbstractReadWriteJ2CacheAccessStrategy.Lock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(Object key,
long txTimestamp) |
org.hibernate.cache.spi.CollectionRegion |
getRegion() |
protected void |
handleLockExpiry(Object key,
AbstractReadWriteJ2CacheAccessStrategy.Lockable lock) |
org.hibernate.cache.spi.access.SoftLock |
lockItem(Object key,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockRegion() |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
protected T |
region() |
void |
remove(Object key) |
void |
removeAll() |
protected org.hibernate.cfg.Settings |
settings() |
void |
unlockItem(Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) |
public ReadWriteJ2CacheCollectionRegionAccessStrategy(J2CacheCollectionRegion region, org.hibernate.cfg.Settings settings)
public org.hibernate.cache.spi.CollectionRegion getRegion()
getRegion 在接口中 org.hibernate.cache.spi.access.CollectionRegionAccessStrategypublic final Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final org.hibernate.cache.spi.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionprotected void decrementLock(Object key, AbstractReadWriteJ2CacheAccessStrategy.Lock lock)
protected void handleLockExpiry(Object key, AbstractReadWriteJ2CacheAccessStrategy.Lockable lock)
protected T region()
protected org.hibernate.cfg.Settings settings()
public final boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final org.hibernate.cache.spi.access.SoftLock lockRegion()
public final void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic void remove(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.CacheExceptionCopyright © 2018. All rights reserved.