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 classLockTracking.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.Cleanablecleanableprivate 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 booleanequals(java.lang.Object o)inthashCode()booleanisActive()Checks whether the lock is still active.voidrelease()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:LockChecks whether the lock is still active.
-
release
public void release()
Description copied from interface:LockRelease the lock, making it inactive.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-