Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.util.concurrent.locks
Interface RefCountingLock

All Superinterfaces:
Lock
All Known Implementing Classes:
OwnableRefCountingReentrantLock, VisibleOwnerRefCountingReentrantLock

public interface RefCountingLock
extends Lock

An extension of a JDK Lock, with support for maintaining a reference counter.

Since:
5.2
Author:
Manik Surtani

Method Summary
 AtomicInteger getReferenceCounter()
          Accesses the reference counter for this lock
 
Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
 

Method Detail

getReferenceCounter

AtomicInteger getReferenceCounter()
Accesses the reference counter for this lock

Returns:
a reference counter

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.