org.infinispan.util.concurrent.locks
Class VisibleOwnerRefCountingReentrantLock

java.lang.Object
  extended by java.util.concurrent.locks.ReentrantLock
      extended by org.infinispan.util.concurrent.locks.VisibleOwnerReentrantLock
          extended by 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

Constructor Summary
VisibleOwnerRefCountingReentrantLock()
           
 
Method Summary
 AtomicInteger getReferenceCounter()
          Accesses the reference counter for this lock
 String toString()
           
 
Methods inherited from class org.infinispan.util.concurrent.locks.VisibleOwnerReentrantLock
getOwner
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
 

Constructor Detail

VisibleOwnerRefCountingReentrantLock

public VisibleOwnerRefCountingReentrantLock()
Method Detail

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.