-
public interface Lockable
TheLockable
interface defines methods to set the status of an object to be locked or unlocked and to determine the status. Depending instances may useLockable
instances to determine whether to modify an implementing instance or keep it untouched. An implementing instance may throw theorg.refcodes.exception.LockedRuntimeException
or theorg.refcodes.exception.LockedException
, depending whether it wants that exception to be checked or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isLocked()
Determines whether the implementing instance is locked.void
lock()
Locks the implementing instance.void
unlock()
Unlocks the implementing instance.
-