Class LockCleaner<T extends Lock>
java.lang.Object
org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockCleaner<T>
- All Implemented Interfaces:
 LockMonitoring<T>
@InternalUseOnly
public class LockCleaner<T extends Lock>
extends Object
implements LockMonitoring<T>
Automatically log and release locks that are no longer referenced and will be garbage collected.
- Author:
 - HÃ¥vard M. Ottestad
 
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface LockMonitoring
LockMonitoring.Wrapper<T> - 
Field Summary
Fields inherited from interface LockMonitoring
INITIAL_WAIT_TO_COLLECT - 
Constructor Summary
ConstructorsConstructorDescriptionLockCleaner(boolean stacktrace, String alias, org.slf4j.Logger logger, Lock.ExtendedSupplier<T> supplier)  - 
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LockMonitoring
getLock, requiresManualCleanup, runCleanup 
- 
Constructor Details
- 
LockCleaner
public LockCleaner(boolean stacktrace, String alias, org.slf4j.Logger logger, Lock.ExtendedSupplier<T> supplier)  
 - 
 - 
Method Details
- 
getLock
- Specified by:
 getLockin interfaceLockMonitoring<T extends Lock>- Throws:
 InterruptedException
 - 
tryLock
- Specified by:
 tryLockin interfaceLockMonitoring<T extends Lock>
 - 
unsafeInnerLock
- Specified by:
 unsafeInnerLockin interfaceLockMonitoring<T extends Lock>
 - 
register
 - 
unregister
- Specified by:
 unregisterin interfaceLockMonitoring<T extends Lock>
 
 -