org.apache.tapestry5.ioc.internal.util
Class DummyLock
java.lang.Object
org.apache.tapestry5.ioc.internal.util.DummyLock
- All Implemented Interfaces:
- Lock
public class DummyLock
- extends Object
- implements Lock
Acts like a Lock but all operations are no-ops.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyLock
public DummyLock()
lock
public void lock()
- Specified by:
lock
in interface Lock
lockInterruptibly
public void lockInterruptibly()
throws InterruptedException
- Specified by:
lockInterruptibly
in interface Lock
- Throws:
InterruptedException
newCondition
public Condition newCondition()
- Returns null.
- Specified by:
newCondition
in interface Lock
tryLock
public boolean tryLock()
- Specified by:
tryLock
in interface Lock
- Returns:
- true
tryLock
public boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
- Specified by:
tryLock
in interface Lock
- Returns:
- true
- Throws:
InterruptedException
unlock
public void unlock()
- Specified by:
unlock
in interface Lock
Copyright © 2003-2012 The Apache Software Foundation.