Interface Lock
-
- All Known Implementing Classes:
LockCleaner.CleanableLock,LockTracking.SimpleLock,StampedLockManager.OptimisticReadLock
public interface LockA lock on a specific monitor that can be used for synchronization purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLock.ExtendedSupplier<T extends Lock>Extension of the Lock.Supplier interface to support tryLock().static interfaceLock.Supplier<T extends Lock>Functional interface for supplying a lock with support for InterruptedException.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisActive()Checks whether the lock is still active.voidrelease()Release the lock, making it inactive.
-