public static interface DynamoDBMapperConfig.BatchLoadRetryStrategy
DynamoDBMapper.batchLoad(Iterable, DynamoDBMapperConfig)
breaks the requested items in batches of maximum size 100.
When calling the Dynamo Db client, there is a chance that due to throttling, some unprocessed keys will be returned.
This interfaces controls whether we need to retry these unprocessed keys and it also controls the strategy as to how retries should be handledModifier and Type | Method and Description |
---|---|
long |
getDelayBeforeNextRetry(BatchLoadContext batchLoadContext)
Returns delay(in milliseconds) before retrying Unprocessed keys
|
boolean |
shouldRetry(BatchLoadContext batchLoadContext)
Checks if the batch load request should be retried.
|
boolean shouldRetry(BatchLoadContext batchLoadContext)
batchLoadContext
- see BatchLoadContext
long getDelayBeforeNextRetry(BatchLoadContext batchLoadContext)
batchLoadContext
- see BatchLoadContext
Copyright © 2021. All rights reserved.