@Deprecated
public class SimpleLock
extends java.lang.Object
implements java.util.concurrent.locks.Lock, java.io.Serializable
| Constructor and Description |
|---|
SimpleLock()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void lock()
lock in interface java.util.concurrent.locks.Lockpublic boolean tryLock()
tryLock in interface java.util.concurrent.locks.Lockpublic void unlock()
unlock in interface java.util.concurrent.locks.Lockpublic java.util.concurrent.locks.Condition newCondition()
newCondition in interface java.util.concurrent.locks.Lockpublic boolean isLocked()
public boolean hasQueuedThreads()
public void lockInterruptibly()
throws java.lang.InterruptedException
lockInterruptibly in interface java.util.concurrent.locks.Lockjava.lang.InterruptedExceptionpublic boolean tryLock(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
tryLock in interface java.util.concurrent.locks.Lockjava.lang.InterruptedExceptionCopyright © 2005-2014 FuseSource. All Rights Reserved.