@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.428Z") @Stability(value=Experimental) public interface RetryProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
RetryProps.Builder
A builder for
RetryProps |
static class |
RetryProps.Jsii$Proxy
An implementation for
RetryProps |
| Modifier and Type | Method and Description |
|---|---|
static RetryProps.Builder |
builder() |
default Number |
getBackoffRate()
(experimental) Multiplication for how much longer the wait interval gets on every retry.
|
default List<String> |
getErrors()
(experimental) Errors to retry.
|
default Duration |
getInterval()
(experimental) How many seconds to wait initially before retrying.
|
default Number |
getMaxAttempts()
(experimental) How many times to retry this particular error.
|
@Stability(value=Experimental) @Nullable default Number getBackoffRate()
Default: 2
@Stability(value=Experimental) @Nullable default List<String> getErrors()
A list of error strings to retry, which can be either predefined errors (for example Errors.NoChoiceMatched) or a self-defined error.
Default: All errors
@Stability(value=Experimental) @Nullable default Duration getInterval()
Default: Duration.seconds(1)
@Stability(value=Experimental) @Nullable default Number getMaxAttempts()
May be 0 to disable retry for specific errors (in case you have a catch-all retry policy).
Default: 3
@Stability(value=Experimental) static RetryProps.Builder builder()
RetryProps.Builder of RetryPropsCopyright © 2021. All rights reserved.