Class LockMonitoring.Wrapper<T extends Lock>
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockMonitoring.Wrapper<T>
-
- All Implemented Interfaces:
LockMonitoring<T>
- Enclosing interface:
- LockMonitoring<T extends Lock>
public static class LockMonitoring.Wrapper<T extends Lock> extends Object implements LockMonitoring<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockMonitoring
LockMonitoring.Wrapper<T extends Lock>
-
-
Field Summary
-
Fields inherited from interface org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockMonitoring
INITIAL_WAIT_TO_COLLECT
-
-
Constructor Summary
Constructors Constructor Description Wrapper(Lock.ExtendedSupplier<T> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LockgetLock()Lockregister(Lock lock)LocktryLock()voidunregister(Lock lock)TunsafeInnerLock(Lock lock)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockMonitoring
getLock, requiresManualCleanup, runCleanup
-
-
-
-
Constructor Detail
-
Wrapper
public Wrapper(Lock.ExtendedSupplier<T> supplier)
-
-
Method Detail
-
getLock
public Lock getLock() throws InterruptedException
- Specified by:
getLockin interfaceLockMonitoring<T extends Lock>- Throws:
InterruptedException
-
tryLock
public Lock tryLock()
- Specified by:
tryLockin interfaceLockMonitoring<T extends Lock>
-
unsafeInnerLock
public T unsafeInnerLock(Lock lock)
- Specified by:
unsafeInnerLockin interfaceLockMonitoring<T extends Lock>
-
unregister
public void unregister(Lock lock)
- Specified by:
unregisterin interfaceLockMonitoring<T extends Lock>
-
-