@Stability(value=Experimental) @Internal 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.
|
protected |
Jsii$Proxy(Number backoffRate,
List<String> errors,
Duration interval,
Number maxAttempts)
Constructor that initializes the object based on literal property values passed by the
RetryProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getBackoffRate()
(experimental) Multiplication for how much longer the wait interval gets on every retry.
|
List<String> |
getErrors()
(experimental) Errors to retry.
|
Duration |
getInterval()
(experimental) How many seconds to wait initially before retrying.
|
Number |
getMaxAttempts()
(experimental) How many times to retry this particular error.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public final Number getBackoffRate()
RetryPropsDefault: 2
getBackoffRate in interface RetryPropspublic final 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
getErrors in interface RetryPropspublic final Duration getInterval()
RetryPropsDefault: Duration.seconds(1)
getInterval in interface RetryPropspublic final Number getMaxAttempts()
RetryPropsMay be 0 to disable retry for specific errors (in case you have a catch-all retry policy).
Default: 3
getMaxAttempts in interface RetryProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.