public class LockableObject
extends java.util.concurrent.locks.AbstractQueuedSynchronizer
| Constructor and Description | 
|---|
| LockableObject() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | isHeldExclusively() | 
| void | lock() | 
| protected boolean | tryAcquire(int acquires) | 
| protected boolean | tryRelease(int releases) | 
| void | unlock() | 
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, setState, toString, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseSharedprotected final boolean isHeldExclusively()
isHeldExclusively in class java.util.concurrent.locks.AbstractQueuedSynchronizerpublic final void lock()
public final void unlock()
protected final boolean tryAcquire(int acquires)
tryAcquire in class java.util.concurrent.locks.AbstractQueuedSynchronizerprotected final boolean tryRelease(int releases)
tryRelease in class java.util.concurrent.locks.AbstractQueuedSynchronizer