public static final class RetryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RetryProps
RetryProps
RetryProps.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(java.lang.Object o) |
java.lang.Number |
getBackoffRate()
Multiplication for how much longer the wait interval gets on every retry.
|
java.util.List<java.lang.String> |
getErrors()
Errors to retry.
|
Duration |
getInterval()
How many seconds to wait initially before retrying.
|
java.lang.Number |
getMaxAttempts()
How many times to retry this particular error.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Number getBackoffRate()
RetryProps
Default: 2
getBackoffRate
in interface RetryProps
public final java.util.List<java.lang.String> getErrors()
RetryProps
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
getErrors
in interface RetryProps
public final Duration getInterval()
RetryProps
Default: Duration.seconds(1)
getInterval
in interface RetryProps
public final java.lang.Number getMaxAttempts()
RetryProps
May be 0 to disable retry for specific errors (in case you have a catch-all retry policy).
Default: 3
getMaxAttempts
in interface RetryProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()