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, 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
getExclusiveOwnerThread, setExclusiveOwnerThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
public AtomicInteger getReferenceCounter()
RefCountingLock
getReferenceCounter
in interface RefCountingLock
public String toString()
OwnableReentrantLock
toString
in class OwnableReentrantLock
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.