org.apache.tapestry5.ioc.internal.util
Class DummyLock

java.lang.Object
  extended by 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.


Constructor Summary
DummyLock()
           
 
Method Summary
 void lock()
           
 void lockInterruptibly()
           
 Condition newCondition()
          Returns null.
 boolean tryLock()
           
 boolean tryLock(long time, TimeUnit unit)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLock

public DummyLock()
Method Detail

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.