Package io.agroal.api.cache
Interface Acquirable
-
public interface AcquirableContract for objects that can be acquired.- Author:
- Luis Barreiro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacquire()Attempts to acquire this object.booleanisAcquirable()This method signals if the object can't be acquired in future calls to acquire().
-
-
-
Method Detail
-
acquire
boolean acquire()
Attempts to acquire this object.- Returns:
- true on successful object acquisition, false otherwise.
-
isAcquirable
boolean isAcquirable()
This method signals if the object can't be acquired in future calls to acquire().- Returns:
- true if this object can eventually be acquired in the future.
-
-