Class LockCleaner.CleanableLock<T extends Lock>
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockCleaner.CleanableLock<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LockCleaner.CleanableLock.State<T extends Lock>
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.common.concurrent.locks.Lock
Lock.ExtendedSupplier<T extends Lock>, Lock.Supplier<T extends Lock>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.Cleaner.Cleanable
cleanable
private LockCleaner.CleanableLock.State<T>
state
-
Constructor Summary
Constructors Constructor Description CleanableLock(ConcurrentCleaner cleaner, T lock, java.lang.String alias, org.slf4j.Logger logger, java.lang.Thread thread, java.lang.Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isActive()
Checks whether the lock is still active.void
release()
Release the lock, making it inactive.
-
-
-
Field Detail
-
cleanable
private final java.lang.ref.Cleaner.Cleanable cleanable
-
state
private final LockCleaner.CleanableLock.State<T extends Lock> state
-
-
Constructor Detail
-
CleanableLock
public CleanableLock(ConcurrentCleaner cleaner, T lock, java.lang.String alias, org.slf4j.Logger logger, java.lang.Thread thread, java.lang.Throwable throwable)
-
-
Method Detail
-
isActive
public boolean isActive()
Description copied from interface:Lock
Checks whether the lock is still active.
-
-