@FunctionalInterface public interface RetryCondition
Modifier and Type | Field and Description |
---|---|
static RetryCondition |
DEFAULT |
static RetryCondition |
NONE |
Modifier and Type | Method and Description |
---|---|
default AndRetryCondition |
and(RetryCondition other) |
default OrRetryCondition |
or(RetryCondition other) |
boolean |
shouldRetry(RetryPolicyContext context)
Determine whether a request should or should not be retried.
|
static final RetryCondition DEFAULT
static final RetryCondition NONE
default OrRetryCondition or(RetryCondition other)
default AndRetryCondition and(RetryCondition other)
boolean shouldRetry(RetryPolicyContext context)
context
- Context about the state of the last request and information about the number of requests made.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.