Interface Lock
- All Known Implementing Classes:
AbstractReadWriteLockManager.ReadLock, AbstractReadWriteLockManager.WriteLock, AbstractSailConnection.JavaLock, ExclusiveLockManager.ExclusiveLock, ExclusiveReentrantLockManager.ExclusiveReentrantLock, LockCleaner.CleanableLock, LockManager.ReadLock, LockTracking.SimpleLock, StampedLockManager.OptimisticReadLock, StampedLockManager.ReadLock, StampedLockManager.WriteLock
public interface Lock
A lock on a specific monitor that can be used for synchronization purposes.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceLock.ExtendedSupplier<T extends Lock>Extension of the Lock.Supplier interface to support tryLock().static interfaceLock.Supplier<T extends Lock>Functional interface for supplying a lock with support for InterruptedException. -
Method Summary
-
Method Details
-
isActive
boolean isActive()Checks whether the lock is still active. -
release
void release()Release the lock, making it inactive.
-