Interface LockProvider

All Known Subinterfaces:
ExtensibleLockProvider
All Known Implementing Classes:
KeepAliveLockProvider, StorageBasedLockProvider, TrackingLockProviderWrapper

public interface LockProvider
Provides lock implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    lock(LockConfiguration lockConfiguration)
    Attempts to acquire a lock for the given configuration.
  • Method Details

    • lock

      Optional<SimpleLock> lock(LockConfiguration lockConfiguration)
      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.