Class RedisTryLockRepository
java.lang.Object
se.swedenconnect.bankid.idp.concurrency.RedisTryLockRepository
- All Implemented Interfaces:
TryLockRepository
A Redis implementation of
TryLockRepository
. Provides locks, distributed over Redis.- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RedisTryLockRepository
Constructor.- Parameters:
client
- the Redis client
-
-
Method Details
-
get
Locking repository responsible for providing locks by key.- Specified by:
get
in interfaceTryLockRepository
- Parameters:
key
- unique identifier for the lock- Returns:
- a lock
-