org.mule.tck.util
Class FakeLock
java.lang.Object
org.mule.tck.util.FakeLock
- All Implemented Interfaces:
- Lock
public class FakeLock
- extends Object
- implements Lock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeLock
public FakeLock()
lock
public void lock()
- Specified by:
lock in interface Lock
lockInterruptibly
public void lockInterruptibly()
throws InterruptedException
- Specified by:
lockInterruptibly in interface Lock
- Throws:
InterruptedException
tryLock
public boolean tryLock()
- Specified by:
tryLock in interface Lock
tryLock
public boolean tryLock(long timeout,
TimeUnit timeUnit)
throws InterruptedException
- Specified by:
tryLock in interface Lock
- Throws:
InterruptedException
unlock
public void unlock()
- Specified by:
unlock in interface Lock
newCondition
public Condition newCondition()
- Specified by:
newCondition in interface Lock
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.