public static class HttpRetryPolicy.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpRetryPolicy.Builder |
addAllRetryConditions(List<String> retryConditions)
Specfies one or more conditions when this retry rule applies.
|
HttpRetryPolicy.Builder |
addRetryConditions(String retryConditions)
Specfies one or more conditions when this retry rule applies.
|
HttpRetryPolicy |
build() |
HttpRetryPolicy.Builder |
clone() |
Integer |
getNumRetries()
Specifies the allowed number retries.
|
Duration |
getPerTryTimeout()
Specifies a non-zero timeout per retry attempt.
|
List<String> |
getRetryConditionsList()
Specfies one or more conditions when this retry rule applies.
|
HttpRetryPolicy.Builder |
mergeFrom(HttpRetryPolicy other) |
HttpRetryPolicy.Builder |
setNumRetries(Integer numRetries)
Specifies the allowed number retries.
|
HttpRetryPolicy.Builder |
setPerTryTimeout(Duration perTryTimeout)
Specifies a non-zero timeout per retry attempt.
|
public HttpRetryPolicy.Builder mergeFrom(HttpRetryPolicy other)
public Integer getNumRetries()
public HttpRetryPolicy.Builder setNumRetries(Integer numRetries)
public Duration getPerTryTimeout()
public HttpRetryPolicy.Builder setPerTryTimeout(Duration perTryTimeout)
public List<String> getRetryConditionsList()
public HttpRetryPolicy.Builder addAllRetryConditions(List<String> retryConditions)
public HttpRetryPolicy.Builder addRetryConditions(String retryConditions)
public HttpRetryPolicy build()
public HttpRetryPolicy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.