Interface LockProvider
- All Known Subinterfaces:
ExtensibleLockProvider
- All Known Implementing Classes:
KeepAliveLockProvider, StorageBasedLockProvider, TrackingLockProviderWrapper
public interface LockProvider
Provides lock implementation.
-
Method Summary
Modifier and TypeMethodDescriptionlock(LockConfiguration lockConfiguration) Attempts to acquire a lock for the given configuration.
-
Method Details
-
lock
Attempts to acquire a lock for the given configuration.- Returns:
- If empty optional has been returned, lock could not be acquired. The lock has to be released by the callee.
-