Buildable.Utils
Modifier and Type | Method and Description |
---|---|
Retrier.Builder |
backoffRate(Double backoffRate)
OPTIONAL.
|
Retrier |
build() |
Retrier.Builder |
errorEquals(String... errorEquals)
REQUIRED.
|
Retrier.Builder |
intervalSeconds(Integer intervalSeconds)
OPTIONAL.
|
Retrier.Builder |
maxAttempts(Integer maxAttempts)
OPTIONAL.
|
Retrier.Builder |
retryOnAllErrors()
OPTIONAL.
|
public Retrier.Builder errorEquals(String... errorEquals)
errorEquals
- New error codes to add to this retrier's handled errors.public Retrier.Builder retryOnAllErrors()
errorEquals
.public Retrier.Builder intervalSeconds(Integer intervalSeconds)
backoffRate
multiplier to the previous delay.intervalSeconds
- Delay in seconds. Positive integer.public Retrier.Builder maxAttempts(Integer maxAttempts)
Note that 0 is a legal value for MaxAttempts and represents that the error should not be retried.
maxAttempts
- Number of max attempts. Non-negative integer.public Retrier.Builder backoffRate(Double backoffRate)
intervalSeconds(Integer)
on each attempt. The default value is 2.0.backoffRate
- Multiplier for intervalSeconds(Integer)
. Must be greater than or equal to 1.0.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.