com.hazelcast.hibernate.region
Class CollectionRegionAccessStrategyAdapter

java.lang.Object
  extended by com.hazelcast.hibernate.region.CollectionRegionAccessStrategyAdapter

public final class CollectionRegionAccessStrategyAdapter
extends Object

Simple adapter implementation for transactional / concurrent access control on collections

Author:
Leo Kim (lkim@limewire.com)

Constructor Summary
CollectionRegionAccessStrategyAdapter(AccessDelegate<? extends HazelcastCollectionRegion> delegate)
           
 
Method Summary
 void evict(Object key)
           
 void evictAll()
           
 Object get(Object key, long txTimestamp)
           
 CollectionRegion getRegion()
           
 SoftLock lockItem(Object key, Object version)
           
 SoftLock lockRegion()
           
 boolean putFromLoad(Object key, Object value, long txTimestamp, Object version)
           
 boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride)
           
 void remove(Object key)
           
 void removeAll()
           
 void unlockItem(Object key, SoftLock lock)
           
 void unlockRegion(SoftLock lock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionRegionAccessStrategyAdapter

public CollectionRegionAccessStrategyAdapter(AccessDelegate<? extends HazelcastCollectionRegion> delegate)
Method Detail

evict

public void evict(Object key)
           throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

evictAll

public void evictAll()
              throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

get

public Object get(Object key,
                  long txTimestamp)
           throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

getRegion

public CollectionRegion getRegion()

lockItem

public SoftLock lockItem(Object key,
                         Object version)
                  throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

lockRegion

public SoftLock lockRegion()
                    throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

putFromLoad

public boolean putFromLoad(Object key,
                           Object value,
                           long txTimestamp,
                           Object version)
                    throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

putFromLoad

public boolean putFromLoad(Object key,
                           Object value,
                           long txTimestamp,
                           Object version,
                           boolean minimalPutOverride)
                    throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

remove

public void remove(Object key)
            throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

removeAll

public void removeAll()
               throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

unlockItem

public void unlockItem(Object key,
                       SoftLock lock)
                throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException

unlockRegion

public void unlockRegion(SoftLock lock)
                  throws org.hibernate.cache.CacheException
Throws:
org.hibernate.cache.CacheException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.