public class OwnableRefCountingReentrantLock extends OwnableReentrantLock implements RefCountingLock
OwnableReentrantLockthat has a reference counter, and implements
RefCountingLock. Used with a lock-per-entry container, in this case the
|Constructor and Description|
|Modifier and Type||Method and Description|
Accesses the reference counter for this lock
Returns a string identifying this lock, as well as its lock state.
currentRequestor, getHoldCount, getOwner, isHeldExclusively, isLocked, lock, lock, lockInterruptibly, newCondition, tryAcquire, tryLock, tryLock, tryLock, tryRelease, unlock, unlock, unsetCurrentRequestor
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, setState, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseShared
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public AtomicInteger getReferenceCounter()
public String toString()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.