Class DynamoDbLockRegistry
java.lang.Object
io.awspring.cloud.dynamodb.DynamoDbLockRegistry
- All Implemented Interfaces:
org.springframework.integration.support.locks.ExpirableLockRegistry<org.springframework.integration.support.locks.DistributedLock>,org.springframework.integration.support.locks.LockRegistry<org.springframework.integration.support.locks.DistributedLock>,org.springframework.integration.support.locks.RenewableLockRegistry<org.springframework.integration.support.locks.DistributedLock>
public class DynamoDbLockRegistry
extends Object
implements org.springframework.integration.support.locks.ExpirableLockRegistry<org.springframework.integration.support.locks.DistributedLock>, org.springframework.integration.support.locks.RenewableLockRegistry<org.springframework.integration.support.locks.DistributedLock>
An
ExpirableLockRegistry and RenewableLockRegistry implementation for the AWS DynamoDB. The algorithm
is based on the DynamoDbLockRepository.- Since:
- 4.0
- Author:
- Artem Bilan, Karl Lessard, Asiel Caballero
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexpireUnusedOlderThan(long age) org.springframework.integration.support.locks.DistributedLockvoidvoidvoidsetIdleBetweenTries(Duration idleBetweenTries) Specify aDurationto sleep between lock record insert/update attempts.voidsetTimeToLive(Duration ttl) Specify aDurationfor a lock record lease expiration.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.support.locks.LockRegistry
executeLocked, executeLocked, executeLocked, executeLockedMethods inherited from interface org.springframework.integration.support.locks.RenewableLockRegistry
setRenewalTaskScheduler
-
Constructor Details
-
DynamoDbLockRegistry
-
-
Method Details
-
setIdleBetweenTries
-
setTimeToLive
-
obtain
- Specified by:
obtainin interfaceorg.springframework.integration.support.locks.LockRegistry<org.springframework.integration.support.locks.DistributedLock>
-
expireUnusedOlderThan
public void expireUnusedOlderThan(long age) - Specified by:
expireUnusedOlderThanin interfaceorg.springframework.integration.support.locks.ExpirableLockRegistry<org.springframework.integration.support.locks.DistributedLock>
-
renewLock
- Specified by:
renewLockin interfaceorg.springframework.integration.support.locks.RenewableLockRegistry<org.springframework.integration.support.locks.DistributedLock>
-
renewLock
-
toString
-