Interface LockRegistry
- All Known Subinterfaces:
ExpirableLockRegistry
,RenewableLockRegistry
- All Known Implementing Classes:
DefaultLockRegistry
,PassThruLockRegistry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface LockRegistry
Strategy for maintaining a registry of shared locks.
- Since:
- 2.1.1
-
Method Summary
Modifier and Type Method Description java.util.concurrent.locks.Lock
obtain(java.lang.Object lockKey)
Obtains the lock associated with the parameter object.
-
Method Details
-
obtain
java.util.concurrent.locks.Lock obtain(java.lang.Object lockKey)Obtains the lock associated with the parameter object.- Parameters:
lockKey
- The object with which the lock is associated.- Returns:
- The associated lock.
-