All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.util.concurrent.locks.RefCountingLock Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
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