| Package | Description |
|---|---|
| com.amazonaws.services.dynamodbv2 |
| Modifier and Type | Method and Description |
|---|---|
LockItem |
AmazonDynamoDBLockClient.acquireLock(AcquireLockOptions options)
Attempts to acquire a lock until it either acquires the lock, or a specified
additionalTimeToWaitForLock is
reached. |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<LockItem> |
AmazonDynamoDBLockClient.getAllLocksFromDynamoDB(boolean deleteOnRelease)
Retrieves all the lock items from DynamoDB.
|
Optional<LockItem> |
AmazonDynamoDBLockClient.getLock(String key,
Optional<String> sortKey)
Finds out who owns the given lock, but does not acquire the lock.
|
Optional<LockItem> |
AmazonDynamoDBLockClient.getLockFromDynamoDB(GetLockOptions options)
Retrieves the lock item from DynamoDB.
|
Optional<LockItem> |
AmazonDynamoDBLockClient.tryAcquireLock(AcquireLockOptions options)
Attempts to acquire lock.
|
| Modifier and Type | Method and Description |
|---|---|
static ReleaseLockOptions.ReleaseLockOptionsBuilder |
ReleaseLockOptions.builder(LockItem lockItem)
Creates a builder for the ReleaseLockOptions object.
|
static SendHeartbeatOptions.SendHeartbeatOptionsBuilder |
SendHeartbeatOptions.builder(LockItem lockItem)
Creates a SendHeartbeatOptionsBuilder, which can be used for setting
options for the sendHeartbeat() method in the lock client.
|
boolean |
AmazonDynamoDBLockClient.releaseLock(LockItem lockItem)
Releases the given lock if the current user still has it, returning true if the lock was successfully released, and false
if someone else already stole the lock.
|
void |
AmazonDynamoDBLockClient.sendHeartbeat(LockItem lockItem)
Sends a heartbeat to indicate that the given lock is still being worked on.
|
Copyright © 2013–2019. All rights reserved.