org.infinispan.util.concurrent.locks
Class VisibleOwnerRefCountingReentrantLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
org.infinispan.util.concurrent.locks.VisibleOwnerReentrantLock
org.infinispan.util.concurrent.locks.VisibleOwnerRefCountingReentrantLock
- All Implemented Interfaces:
- Serializable, Lock, RefCountingLock
public class VisibleOwnerRefCountingReentrantLock
- extends VisibleOwnerReentrantLock
- implements RefCountingLock
A version of VisibleOwnerReentrantLock
that has a reference counter, and implements RefCountingLock
.
Used with a lock-per-entry container, in this case the ReentrantPerEntryLockContainer
.
- Since:
- 5.2
- Author:
- Manik Surtani
- See Also:
ReentrantPerEntryLockContainer
,
Serialized Form
Methods inherited from class java.util.concurrent.locks.ReentrantLock |
getHoldCount, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock |
VisibleOwnerRefCountingReentrantLock
public VisibleOwnerRefCountingReentrantLock()
getReferenceCounter
public AtomicInteger getReferenceCounter()
- Description copied from interface:
RefCountingLock
- Accesses the reference counter for this lock
- Specified by:
getReferenceCounter
in interface RefCountingLock
- Returns:
- a reference counter
toString
public String toString()
- Overrides:
toString
in class ReentrantLock
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.