Class LockTracking.SimpleLock<T extends Lock>
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.diagnostics.LockTracking.SimpleLock<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LockTracking.SimpleLock.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 LockTracking.SimpleLock.State<T>
state
-
Constructor Summary
Constructors Constructor Description SimpleLock(T lock, java.lang.String alias, long acquiredId, java.lang.Throwable stack, java.lang.Thread thread, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isActive()
Checks whether the lock is still active.void
release()
Release the lock, making it inactive.
-
-
-
Field Detail
-
state
private final LockTracking.SimpleLock.State<T extends Lock> state
-
cleanable
private final java.lang.ref.Cleaner.Cleanable cleanable
-
-
Constructor Detail
-
SimpleLock
public SimpleLock(T lock, java.lang.String alias, long acquiredId, java.lang.Throwable stack, java.lang.Thread thread, org.slf4j.Logger logger)
-
-
Method Detail
-
isActive
public boolean isActive()
Description copied from interface:Lock
Checks whether the lock is still active.
-
release
public void release()
Description copied from interface:Lock
Release the lock, making it inactive.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-