Interface LockMonitoring<T extends Lock>
- All Known Implementing Classes:
LockCleaner
,LockMonitoring.Wrapper
,LockTracking
Interface to support monitoring and cleaning of locks.
- Author:
- HÃ¥vard M. Ottestad
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLock()
default Lock
default boolean
default void
tryLock()
void
unregister
(Lock lock) unsafeInnerLock
(Lock lock) static <T extends Lock>
LockMonitoring<T> wrap
(Lock.ExtendedSupplier<T> supplier)
-
Field Details
-
INITIAL_WAIT_TO_COLLECT
static final int INITIAL_WAIT_TO_COLLECT- See Also:
-
-
Method Details
-
getLock
- Throws:
InterruptedException
-
tryLock
Lock tryLock() -
getLock
- Throws:
InterruptedException
-
unsafeInnerLock
-
runCleanup
default void runCleanup() -
requiresManualCleanup
default boolean requiresManualCleanup() -
wrap
-
register
-
unregister
-