org.infinispan.util.concurrent.locks.RefCountingLock Maven / Gradle / Ivy
package org.infinispan.util.concurrent.locks;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.Lock;
/**
* An extension of a JDK {@link Lock}, with support for maintaining a reference counter.
*
* @author Manik Surtani
* @since 5.2
*/
public interface RefCountingLock extends Lock {
/**
* Accesses the reference counter for this lock
* @return a reference counter
*/
AtomicInteger getReferenceCounter();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy