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 aDurationto sleep between lock record insert/update attempts. Defaults to 100 milliseconds.- Parameters:
idleBetweenTries- theDurationto sleep between insert/update attempts.- Since:
- 3.0
-
obtain
- Specified by:
obtainin interfaceorg.springframework.integration.support.locks.LockRegistry
-
expireUnusedOlderThan
public void expireUnusedOlderThan(long age) - Specified by:
expireUnusedOlderThanin interfaceorg.springframework.integration.support.locks.ExpirableLockRegistry
-
renewLock
- Specified by:
renewLockin interfaceorg.springframework.integration.support.locks.RenewableLockRegistry
-
toString
-