public interface Lockable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Lockable.Unlockable
The Unlockable interface is used for releasing the exclusive access to
this Lockable.
|
| Modifier and Type | Method and Description |
|---|---|
default Lockable.Unlockable |
exclusively()
Suggest to this Lockable that the caller requires exclusive access
until
close is called on the
returned AutoCloseable. |
default Lockable.Unlockable exclusively()
close is called on the
returned AutoCloseable.
Note: the caller must call close on
the returned object
AutoCloseable object that requires close to be
called on it when exclusive access is no longer needed