![JAR search and dependency download from the Maven repository](/logo.png)
com.darwinsys.locks.Lock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.locks;
/** The representation of one lock in the
* PessimisticLockManager.
*/
public interface Lock {
/** Release this lock
* @return true if we released it, false if it was already released.
*/
public boolean release();
/** Find out if this lock got released
* (typically due to being timed out)
* before we commit the action based on it.
*/
public boolean isReleased();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy