Class StampedLockManager.OptimisticReadLock
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.StampedLockManager.OptimisticReadLock
-
- All Implemented Interfaces:
Lock
- Enclosing class:
- StampedLockManager
public static class StampedLockManager.OptimisticReadLock extends Object implements Lock
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.common.concurrent.locks.Lock
Lock.ExtendedSupplier<T extends Lock>, Lock.Supplier<T extends Lock>
-
-
Constructor Summary
Constructors Constructor Description OptimisticReadLock(StampedLock stampedLock, long stamp)
-
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.
-
-
-
Constructor Detail
-
OptimisticReadLock
public OptimisticReadLock(StampedLock stampedLock, long stamp)
-
-
Method Detail
-
isActive
public boolean isActive()
Description copied from interface:Lock
Checks whether the lock is still active.
-
-