@Stability(value=Experimental) public static final class RetryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RetryProps
RetryPropssoftware.amazon.jsii.JsiiObject.InitializationModeRetryProps.Builder, RetryProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getBackoffRate()
Multiplication for how much longer the wait interval gets on every retry.
|
List<String> |
getErrors()
Errors to retry.
|
Duration |
getInterval()
How many seconds to wait initially before retrying.
|
Number |
getMaxAttempts()
How many times to retry this particular error.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public Number getBackoffRate()
RetryPropsDefault: 2
EXPERIMENTAL
getBackoffRate in interface RetryPropspublic List<String> getErrors()
RetryPropsA list of error strings to retry, which can be either predefined errors (for example Errors.NoChoiceMatched) or a self-defined error.
Default: All errors
EXPERIMENTAL
getErrors in interface RetryPropspublic Duration getInterval()
RetryPropsDefault: Duration.seconds(1)
EXPERIMENTAL
getInterval in interface RetryPropspublic Number getMaxAttempts()
RetryPropsMay be 0 to disable retry for specific errors (in case you have a catch-all retry policy).
Default: 3
EXPERIMENTAL
getMaxAttempts in interface RetryPropspublic com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.