public static interface DynamoDBMapperConfig.BatchWriteRetryStrategy
DynamoDBMapper.batchWrite(Iterable, Iterable, DynamoDBMapperConfig)
,
Modifier and Type | Method and Description |
---|---|
long |
getDelayBeforeRetryUnprocessedItems(Map<String,List<WriteRequest>> unprocessedItems,
int retriesAttempted)
Returns the delay (in milliseconds) before retrying on
UnprocessedItems.
|
int |
getMaxRetryOnUnprocessedItems(Map<String,List<WriteRequest>> batchWriteItemInput)
Returns the max number of retries to be performed if the service
returns UnprocessedItems in the response.
|
int getMaxRetryOnUnprocessedItems(Map<String,List<WriteRequest>> batchWriteItemInput)
batchWriteItemInput
- the one batch of write requests that is being sent to the
BatchWriteItem API.long getDelayBeforeRetryUnprocessedItems(Map<String,List<WriteRequest>> unprocessedItems, int retriesAttempted)
unprocessedItems
- the UnprocessedItems returned by the service in the last
BatchWriteItem callretriesAttempted
- The number of times we have attempted to resend
UnprocessedItems.Copyright © 2019. All rights reserved.