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 FormConstructor and Description |
---|
VisibleOwnerRefCountingReentrantLock() |
Modifier and Type | Method and Description |
---|---|
AtomicInteger |
getReferenceCounter()
Accesses the reference counter for this lock
|
String |
toString() |
getOwner
getHoldCount, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
public VisibleOwnerRefCountingReentrantLock()
public AtomicInteger getReferenceCounter()
RefCountingLock
getReferenceCounter
in interface RefCountingLock
public String toString()
toString
in class ReentrantLock
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.