org.infinispan.api.async.AsyncLock Maven / Gradle / Ivy
The newest version!
package org.infinispan.api.async;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.TimeUnit;
/**
* @since 14.0
*/
public interface AsyncLock {
String name();
/**
* Return the container of this lock
*
* @return
*/
AsyncContainer container();
CompletionStage lock();
CompletionStage tryLock();
CompletionStage tryLock(long time, TimeUnit unit);
CompletionStage unlock();
CompletionStage isLocked();
CompletionStage isLockedByMe();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy