@Override public void remove(SharedSessionContractImplementor session, Object key) throws CacheException { evict(key); }
@Override public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { remove(key); return false; }
@Override public boolean afterUpdate(SessionImplementor session, Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { unlockItem(session, key, lock); return false; }
@Override public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException { if (accessType == AccessType.READ_ONLY) { return new ReadOnlyEntityRegionAccessStrategy(settings, this); } if (accessType == AccessType.READ_WRITE) { return new ReadWriteEntityRegionAccessStrategy(settings, this, mapCache); } if (accessType == AccessType.NONSTRICT_READ_WRITE) { return new NonStrictReadWriteEntityRegionAccessStrategy(settings, this); } if (accessType == AccessType.TRANSACTIONAL) { return new TransactionalEntityRegionAccessStrategy(settings, this); } throw new CacheException("Unsupported access strategy: " + accessType); }
@Override public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException { if (accessType == AccessType.READ_ONLY) { return new ReadOnlyEntityRegionAccessStrategy(settings, this); } if (accessType == AccessType.READ_WRITE) { return new ReadWriteEntityRegionAccessStrategy(settings, this, mapCache); } if (accessType == AccessType.NONSTRICT_READ_WRITE) { return new NonStrictReadWriteEntityRegionAccessStrategy(settings, this); } if (accessType == AccessType.TRANSACTIONAL) { return new TransactionalEntityRegionAccessStrategy(settings, this); } throw new CacheException("Unsupported access strategy: " + accessType); }
@Override public void remove(SessionImplementor session, Object key) throws CacheException { evict(key); }
@Override public boolean update(SessionImplementor session, Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { remove(session, key); return false; }
@Override public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { unlockItem(key, lock); return false; }
@Override public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException { if (accessType == AccessType.READ_ONLY) { return new ReadOnlyEntityRegionAccessStrategy(settings, this); } if (accessType == AccessType.READ_WRITE) { return new ReadWriteEntityRegionAccessStrategy(settings, this, mapCache); } if (accessType == AccessType.NONSTRICT_READ_WRITE) { return new NonStrictReadWriteEntityRegionAccessStrategy(settings, this); } if (accessType == AccessType.TRANSACTIONAL) { return new TransactionalEntityRegionAccessStrategy(settings, this); } throw new CacheException("Unsupported access strategy: " + accessType); }
@Override public void remove(Object key) throws CacheException { evict(key); }
@Override public boolean update(SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException { remove(session, key); return false; }
@Override public boolean afterUpdate(SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException { unlockItem(session, key, lock); return false; }
@Override public void unlockItem(SessionImplementor session, Object key, SoftLock lock) throws CacheException { evict(key); }
@Override public void unlockItem(Object key, SoftLock lock) throws CacheException { evict(key); }
@Override public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock) throws CacheException { evict(key); }