org.apache.avalon.excalibur.concurrent
Class Lock

java.lang.Object
  |
  +--org.apache.avalon.excalibur.concurrent.Lock

Deprecated. use the Mutex class instead

public class Lock
extends Object

A class to perform a blocking lock.

Since:
4.0
Version:
CVS $Revision: 1.4 $ $Date: 2003/03/22 12:46:23 $
Author:
Federico Barbieri, Berin Loritsch

Constructor Summary
Lock()
          Deprecated.  
 
Method Summary
 void lock()
          Deprecated. Locks.
 void unlock()
          Deprecated. Unlocks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lock

public Lock()
Deprecated. 
Method Detail

lock

public final void lock()
                throws InterruptedException
Deprecated. 
Locks.

Throws:
InterruptedException - if the thread is interrupted while waiting on a lock

unlock

public final void unlock()
Deprecated. 
Unlocks.



Copyright © 2000-2003 Apache Jakarta Project. All Rights Reserved.