public class LockableObject extends AbstractQueuedSynchronizer
A bit simplified lock designed to be inherited by.
Type Params | Return Type | Name and description |
---|---|---|
protected final boolean |
isHeldExclusively() | |
public final void |
lock() | |
protected final boolean |
tryAcquire(int acquires) | |
protected final boolean |
tryRelease(int releases) | |
public final void |
unlock() |
Methods inherited from class | Name |
---|---|
class AbstractQueuedSynchronizer | toString, release, hasQueuedThreads, getQueueLength, getQueuedThreads, hasWaiters, getWaitQueueLength, getWaitingThreads, acquire, acquireInterruptibly, tryAcquireNanos, isQueued, acquireShared, acquireSharedInterruptibly, tryAcquireSharedNanos, releaseShared, hasContended, getFirstQueuedThread, hasQueuedPredecessors, getExclusiveQueuedThreads, getSharedQueuedThreads, owns, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/util/LockableObject.html