DynamoDbMapperConfig.DefaultBatchLoadRetryStrategy, DynamoDbMapperConfig.NoRetryBatchLoadRetryStrategypublic static interface DynamoDbMapperConfig.BatchLoadRetryStrategy
DynamoDbMapper#batchLoad(List) breaks the requested items in batches of maximum size 100.
When calling the Dyanmo 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 handled.| Modifier and Type | Method | 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 BatchLoadContextlong getDelayBeforeNextRetry(BatchLoadContext batchLoadContext)
batchLoadContext - see BatchLoadContextCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.