org.terracotta.modules.ehcache.concurrency
Class TcCacheLockProvider

java.lang.Object
  extended by org.terracotta.modules.ehcache.concurrency.TcCacheLockProvider
All Implemented Interfaces:
net.sf.ehcache.concurrent.CacheLockProvider

public class TcCacheLockProvider
extends Object
implements net.sf.ehcache.concurrent.CacheLockProvider

Author:
Alex Snaps

Constructor Summary
TcCacheLockProvider(ClusteredStoreBackend backend, ValueModeHandler valueModeHandler)
           
 
Method Summary
 net.sf.ehcache.concurrent.Sync[] getAndWriteLockAllSyncForKeys(long timeout, Object... keys)
           
 net.sf.ehcache.concurrent.Sync[] getAndWriteLockAllSyncForKeys(Object... keys)
           
 net.sf.ehcache.concurrent.Sync getSyncForKey(Object key)
           
 void unlockWriteLockForAllKeys(Object... keys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcCacheLockProvider

public TcCacheLockProvider(ClusteredStoreBackend backend,
                           ValueModeHandler valueModeHandler)
Method Detail

getSyncForKey

public net.sf.ehcache.concurrent.Sync getSyncForKey(Object key)
Specified by:
getSyncForKey in interface net.sf.ehcache.concurrent.CacheLockProvider

getAndWriteLockAllSyncForKeys

public net.sf.ehcache.concurrent.Sync[] getAndWriteLockAllSyncForKeys(Object... keys)
Specified by:
getAndWriteLockAllSyncForKeys in interface net.sf.ehcache.concurrent.CacheLockProvider

getAndWriteLockAllSyncForKeys

public net.sf.ehcache.concurrent.Sync[] getAndWriteLockAllSyncForKeys(long timeout,
                                                                      Object... keys)
                                                               throws TimeoutException
Specified by:
getAndWriteLockAllSyncForKeys in interface net.sf.ehcache.concurrent.CacheLockProvider
Throws:
TimeoutException

unlockWriteLockForAllKeys

public void unlockWriteLockForAllKeys(Object... keys)
Specified by:
unlockWriteLockForAllKeys in interface net.sf.ehcache.concurrent.CacheLockProvider


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.