Interface TryLockRepository

All Known Implementing Classes:
InMemoryTryLockRepository, RedisTryLockRepository

public interface TryLockRepository
Interface for all TryLocks.
Author:
Martin Lindström, Felix Hellman
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String key)
    Locking repository responsible for providing locks by key.
  • Method Details

    • get

      TryLock get(String key)
      Locking repository responsible for providing locks by key.
      Parameters:
      key - unique identifier for the lock
      Returns:
      a lock