Package com.oracle.coherence.common.base
Interface Lockable
-
public interface LockableThe Lockable interface is used for managing exclusive access to thread-safe classes.- Author:
- bbc 2021.12.06
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLockable.UnlockableThe Unlockable interface is used for releasing the exclusive access to this Lockable.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Lockable.Unlockableexclusively()Suggest to this Lockable that the caller requires exclusive access untilcloseis called on the returnedAutoCloseable.
-
-
-
Method Detail
-
exclusively
default Lockable.Unlockable exclusively()
Suggest to this Lockable that the caller requires exclusive access untilcloseis called on the returnedAutoCloseable.Note: the caller must call
closeon the returned object- Returns:
- an
AutoCloseableobject that requires close to be called on it when exclusive access is no longer needed
-
-