org.terracotta.modules.ehcache.concurrency
Class NonStopSyncWrapper

java.lang.Object
  extended by org.terracotta.modules.ehcache.concurrency.NonStopSyncWrapper
All Implemented Interfaces:
Sync

public class NonStopSyncWrapper
extends Object
implements Sync


Field Summary
 
Fields inherited from interface net.sf.ehcache.concurrent.Sync
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR
 
Constructor Summary
NonStopSyncWrapper(Sync delegate, ToolkitInstanceFactory toolkitInstanceFactory, ToolkitNonStopExceptionOnTimeoutConfiguration toolkitNonStopConfiguration)
           
 
Method Summary
 boolean isHeldByCurrentThread(LockType type)
          
 void lock(LockType type)
          
 boolean tryLock(LockType type, long msec)
          
 void unlock(LockType type)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonStopSyncWrapper

public NonStopSyncWrapper(Sync delegate,
                          ToolkitInstanceFactory toolkitInstanceFactory,
                          ToolkitNonStopExceptionOnTimeoutConfiguration toolkitNonStopConfiguration)
Method Detail

lock

public void lock(LockType type)

Specified by:
lock in interface Sync

unlock

public void unlock(LockType type)

Specified by:
unlock in interface Sync

tryLock

public boolean tryLock(LockType type,
                       long msec)
                throws InterruptedException

Specified by:
tryLock in interface Sync
Throws:
InterruptedException

isHeldByCurrentThread

public boolean isHeldByCurrentThread(LockType type)

Specified by:
isHeldByCurrentThread in interface Sync


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.