Class InMemoryTryLockRepository

java.lang.Object
se.swedenconnect.bankid.idp.concurrency.InMemoryTryLockRepository
All Implemented Interfaces:
TryLockRepository

public class InMemoryTryLockRepository extends Object implements TryLockRepository
In-memory TryLockRepository.

This class is not intended for production use.

Author:
Martin Lindström, Felix Hellman
  • Constructor Details

    • InMemoryTryLockRepository

      public InMemoryTryLockRepository()
      Default constructor.
  • Method Details

    • get

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