Class DynamoDbLockRegistry
java.lang.Object
org.springframework.integration.aws.lock.DynamoDbLockRegistry
- All Implemented Interfaces:
org.springframework.integration.support.locks.ExpirableLockRegistry
,org.springframework.integration.support.locks.LockRegistry
,org.springframework.integration.support.locks.RenewableLockRegistry
public class DynamoDbLockRegistry
extends Object
implements org.springframework.integration.support.locks.ExpirableLockRegistry, org.springframework.integration.support.locks.RenewableLockRegistry
An
ExpirableLockRegistry
and RenewableLockRegistry
implementation for the AWS DynamoDB.
The algorithm is based on the DynamoDbLockRepository
.- Since:
- 2.0
- Author:
- Artem Bilan, Karl Lessard, Asiel Caballero
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DynamoDbLockRegistry
-
-
Method Details
-
setIdleBetweenTries
Specify aDuration
to sleep between lock record insert/update attempts. Defaults to 100 milliseconds.- Parameters:
idleBetweenTries
- theDuration
to sleep between insert/update attempts.- Since:
- 3.0
-
obtain
- Specified by:
obtain
in interfaceorg.springframework.integration.support.locks.LockRegistry
-
expireUnusedOlderThan
public void expireUnusedOlderThan(long age) - Specified by:
expireUnusedOlderThan
in interfaceorg.springframework.integration.support.locks.ExpirableLockRegistry
-
renewLock
- Specified by:
renewLock
in interfaceorg.springframework.integration.support.locks.RenewableLockRegistry
-
toString
-