public class VisibleOwnerRefCountingReentrantLock extends VisibleOwnerReentrantLock implements RefCountingLock
VisibleOwnerReentrantLock that has a reference counter, and implements RefCountingLock.
Used with a lock-per-entry container, in this case the ReentrantPerEntryLockContainer.ReentrantPerEntryLockContainer,
Serialized Form| Constructor and Description |
|---|
VisibleOwnerRefCountingReentrantLock() |
| Modifier and Type | Method and Description |
|---|---|
AtomicInteger |
getReferenceCounter()
Accesses the reference counter for this lock
|
String |
toString() |
getOwnergetHoldCount, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlock, lockInterruptibly, newCondition, tryLock, tryLock, unlockpublic VisibleOwnerRefCountingReentrantLock()
public AtomicInteger getReferenceCounter()
RefCountingLockgetReferenceCounter in interface RefCountingLockpublic String toString()
toString in class ReentrantLockCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.