public static class ReleaseLockOptions.ReleaseLockOptionsBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
ReleaseLockOptions |
build() |
String |
toString() |
ReleaseLockOptions.ReleaseLockOptionsBuilder |
withBestEffort(boolean bestEffort)
Whether or not to ignore
AmazonClientException when releasing the
lock. |
ReleaseLockOptions.ReleaseLockOptionsBuilder |
withData(ByteBuffer data)
New data to persist to the lock (only used if deleteLock=false.) If the
data is null, then the lock client will keep the data as-is and not
change it.
|
ReleaseLockOptions.ReleaseLockOptionsBuilder |
withDeleteLock(boolean deleteLock)
Whether or not to delete the lock when releasing it.
|
ReleaseLockOptions.ReleaseLockOptionsBuilder |
withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
public ReleaseLockOptions.ReleaseLockOptionsBuilder withDeleteLock(boolean deleteLock)
deleteLock - true to delete the lock when releasing, false otherwisepublic ReleaseLockOptions.ReleaseLockOptionsBuilder withBestEffort(boolean bestEffort)
AmazonClientException when releasing the
lock. If set to true, any exception when calling DynamoDB will be ignored
and the clean up steps will continue, hence the lock item in DynamoDb
might not be updated / deleted but will eventually expire.bestEffort - true to ignore AmazonClientException when releasing,
false otherwisepublic ReleaseLockOptions.ReleaseLockOptionsBuilder withData(ByteBuffer data)
data - The data to persist when deleting the lockpublic ReleaseLockOptions.ReleaseLockOptionsBuilder withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
requestMetricCollector - The request level metric collector to use, takes precedence over the ones at the
http client level and AWS SDK level.public ReleaseLockOptions build()
Copyright © 2013–2019. All rights reserved.