org.apache.servicemix.locks.impl
Class SimpleLock

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

Deprecated.

@Deprecated
public class SimpleLock
extends java.lang.Object
implements java.util.concurrent.locks.Lock, java.io.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.  
 java.util.concurrent.locks.Condition newCondition()
          Deprecated.  
 boolean tryLock()
          Deprecated.  
 boolean tryLock(long timeout, java.util.concurrent.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 java.util.concurrent.locks.Lock

tryLock

public boolean tryLock()
Deprecated. 
Specified by:
tryLock in interface java.util.concurrent.locks.Lock

unlock

public void unlock()
Deprecated. 
Specified by:
unlock in interface java.util.concurrent.locks.Lock

newCondition

public java.util.concurrent.locks.Condition newCondition()
Deprecated. 
Specified by:
newCondition in interface java.util.concurrent.locks.Lock

isLocked

public boolean isLocked()
Deprecated. 

hasQueuedThreads

public boolean hasQueuedThreads()
Deprecated. 

lockInterruptibly

public void lockInterruptibly()
                       throws java.lang.InterruptedException
Deprecated. 
Specified by:
lockInterruptibly in interface java.util.concurrent.locks.Lock
Throws:
java.lang.InterruptedException

tryLock

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


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