Package net.javacrumbs.shedlock.core
Interface LockProvider
- All Known Implementing Classes:
StorageBasedLockProvider
public interface LockProvider
Provides lock implementation.
-
Method Summary
Modifier and Type Method Description Optional<SimpleLock>
lock(LockConfiguration lockConfiguration)
-
Method Details
-
lock
- Returns:
- If empty optional has been returned, lock could not be acquired. The lock has to be released by the callee.
-