org.terracotta.modules.ehcache.concurrency
Class NonStopSyncWrapper
java.lang.Object
org.terracotta.modules.ehcache.concurrency.NonStopSyncWrapper
- All Implemented Interfaces:
- Sync
public class NonStopSyncWrapper
- extends Object
- implements Sync
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonStopSyncWrapper
public NonStopSyncWrapper(Sync delegate,
ToolkitInstanceFactory toolkitInstanceFactory,
ToolkitNonStopExceptionOnTimeoutConfiguration toolkitNonStopConfiguration)
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.