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

sjsonnet.client.Lock Maven / Gradle / Ivy

The newest version!
package sjsonnet.client;
public abstract class Lock implements AutoCloseable{
    abstract public Locked lock() throws Exception;
    abstract public Locked tryLock() throws Exception;

    public void await() throws Exception{
        lock().release();
    }

    /**
     * Returns `true` if the lock is *available for taking*
     */
    abstract public boolean probe() throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy