public final class RetryConfig
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Tasks API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
RetryConfig() |
| Modifier and Type | Method and Description |
|---|---|
RetryConfig |
clone() |
java.lang.Integer |
getMaxAttempts()
Number of attempts per task.
|
java.lang.String |
getMaxBackoff()
A task will be scheduled for retry between min_backoff and max_backoff duration after it fails,
if the queue's RetryConfig specifies that the task should be retried.
|
java.lang.Integer |
getMaxDoublings()
The time between retries will double `max_doublings` times.
|
java.lang.String |
getMaxRetryDuration()
If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured
from when the task was first attempted.
|
java.lang.String |
getMinBackoff()
A task will be scheduled for retry between min_backoff and max_backoff duration after it fails,
if the queue's RetryConfig specifies that the task should be retried.
|
RetryConfig |
set(java.lang.String fieldName,
java.lang.Object value) |
RetryConfig |
setMaxAttempts(java.lang.Integer maxAttempts)
Number of attempts per task.
|
RetryConfig |
setMaxBackoff(java.lang.String maxBackoff)
A task will be scheduled for retry between min_backoff and max_backoff duration after it fails,
if the queue's RetryConfig specifies that the task should be retried.
|
RetryConfig |
setMaxDoublings(java.lang.Integer maxDoublings)
The time between retries will double `max_doublings` times.
|
RetryConfig |
setMaxRetryDuration(java.lang.String maxRetryDuration)
If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured
from when the task was first attempted.
|
RetryConfig |
setMinBackoff(java.lang.String minBackoff)
A task will be scheduled for retry between min_backoff and max_backoff duration after it fails,
if the queue's RetryConfig specifies that the task should be retried.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Integer getMaxAttempts()
null for nonepublic RetryConfig setMaxAttempts(java.lang.Integer maxAttempts)
maxAttempts - maxAttempts or null for nonepublic java.lang.String getMaxBackoff()
null for nonepublic RetryConfig setMaxBackoff(java.lang.String maxBackoff)
maxBackoff - maxBackoff or null for nonepublic java.lang.Integer getMaxDoublings()
null for nonepublic RetryConfig setMaxDoublings(java.lang.Integer maxDoublings)
maxDoublings - maxDoublings or null for nonepublic java.lang.String getMaxRetryDuration()
null for nonepublic RetryConfig setMaxRetryDuration(java.lang.String maxRetryDuration)
maxRetryDuration - maxRetryDuration or null for nonepublic java.lang.String getMinBackoff()
null for nonepublic RetryConfig setMinBackoff(java.lang.String minBackoff)
minBackoff - minBackoff or null for nonepublic RetryConfig set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic RetryConfig clone()
clone in class com.google.api.client.json.GenericJson