public class OwnableRefCountingReentrantLock extends OwnableReentrantLock implements RefCountingLock
OwnableReentrantLock that has a reference counter, and implements RefCountingLock.
Used with a lock-per-entry container, in this case the OwnableReentrantPerEntryLockContainer.OwnableReentrantPerEntryLockContainer,
Serialized FormAbstractQueuedSynchronizer.ConditionObject| Constructor and Description |
|---|
OwnableRefCountingReentrantLock() |
| Modifier and Type | Method and Description |
|---|---|
AtomicInteger |
getReferenceCounter()
Accesses the reference counter for this lock
|
String |
toString()
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, unsetCurrentRequestoracquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, setState, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseSharedgetExclusiveOwnerThread, setExclusiveOwnerThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlock, lockInterruptibly, newCondition, tryLock, tryLock, unlockpublic AtomicInteger getReferenceCounter()
RefCountingLockgetReferenceCounter in interface RefCountingLockpublic String toString()
OwnableReentrantLocktoString in class OwnableReentrantLockCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.