org.apache.servicemix.locks.impl
Class SimpleLock

java.lang.Object
  extended by org.apache.servicemix.locks.impl.SimpleLock
All Implemented Interfaces:
Serializable, Lock

Deprecated.

@Deprecated
public class SimpleLock
extends Object
implements Lock, Serializable

Author:
lhein
See Also:
Serialized Form

Constructor Summary
SimpleLock()
          Deprecated.  
 
Method Summary
 boolean hasQueuedThreads()
          Deprecated.  
 boolean isLocked()
          Deprecated.  
 void lock()
          Deprecated.  
 void lockInterruptibly()
          Deprecated.  
 Condition newCondition()
          Deprecated.  
 boolean tryLock()
          Deprecated.  
 boolean tryLock(long timeout, TimeUnit unit)
          Deprecated.  
 void unlock()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLock

public SimpleLock()
Deprecated. 
Method Detail

lock

public void lock()
Deprecated. 
Specified by:
lock in interface Lock

tryLock

public boolean tryLock()
Deprecated. 
Specified by:
tryLock in interface Lock

unlock

public void unlock()
Deprecated. 
Specified by:
unlock in interface Lock

newCondition

public Condition newCondition()
Deprecated. 
Specified by:
newCondition in interface Lock

isLocked

public boolean isLocked()
Deprecated. 

hasQueuedThreads

public boolean hasQueuedThreads()
Deprecated. 

lockInterruptibly

public void lockInterruptibly()
                       throws InterruptedException
Deprecated. 
Specified by:
lockInterruptibly in interface Lock
Throws:
InterruptedException

tryLock

public boolean tryLock(long timeout,
                       TimeUnit unit)
                throws InterruptedException
Deprecated. 
Specified by:
tryLock in interface Lock
Throws:
InterruptedException


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.