public static interface HttpRetryPolicy.Builder extends SdkPojo, CopyableBuilder<HttpRetryPolicy.Builder,HttpRetryPolicy>
| Modifier and Type | Method and Description |
|---|---|
HttpRetryPolicy.Builder |
httpRetryEvents(Collection<String> httpRetryEvents)
Specify at least one of the following values.
|
HttpRetryPolicy.Builder |
httpRetryEvents(String... httpRetryEvents)
Specify at least one of the following values.
|
HttpRetryPolicy.Builder |
maxRetries(Long maxRetries)
The maximum number of retry attempts.
|
default HttpRetryPolicy.Builder |
perRetryTimeout(Consumer<Duration.Builder> perRetryTimeout)
The timeout for each retry attempt.
|
HttpRetryPolicy.Builder |
perRetryTimeout(Duration perRetryTimeout)
The timeout for each retry attempt.
|
HttpRetryPolicy.Builder |
tcpRetryEvents(Collection<TcpRetryPolicyEvent> tcpRetryEvents)
Specify a valid value.
|
HttpRetryPolicy.Builder |
tcpRetryEvents(TcpRetryPolicyEvent... tcpRetryEvents)
Specify a valid value.
|
HttpRetryPolicy.Builder |
tcpRetryEventsWithStrings(Collection<String> tcpRetryEvents)
Specify a valid value.
|
HttpRetryPolicy.Builder |
tcpRetryEventsWithStrings(String... tcpRetryEvents)
Specify a valid value.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHttpRetryPolicy.Builder httpRetryEvents(Collection<String> httpRetryEvents)
Specify at least one of the following values.
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
gateway-error – HTTP status codes 502, 503, and 504
client-error – HTTP status code 409
stream-error – Retry on refused stream
httpRetryEvents - Specify at least one of the following values.
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
gateway-error – HTTP status codes 502, 503, and 504
client-error – HTTP status code 409
stream-error – Retry on refused stream
HttpRetryPolicy.Builder httpRetryEvents(String... httpRetryEvents)
Specify at least one of the following values.
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
gateway-error – HTTP status codes 502, 503, and 504
client-error – HTTP status code 409
stream-error – Retry on refused stream
httpRetryEvents - Specify at least one of the following values.
server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
gateway-error – HTTP status codes 502, 503, and 504
client-error – HTTP status code 409
stream-error – Retry on refused stream
HttpRetryPolicy.Builder maxRetries(Long maxRetries)
The maximum number of retry attempts.
maxRetries - The maximum number of retry attempts.HttpRetryPolicy.Builder perRetryTimeout(Duration perRetryTimeout)
The timeout for each retry attempt.
perRetryTimeout - The timeout for each retry attempt.default HttpRetryPolicy.Builder perRetryTimeout(Consumer<Duration.Builder> perRetryTimeout)
The timeout for each retry attempt.
This is a convenience that creates an instance of theDuration.Builder avoiding the need to create
one manually via Duration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to perRetryTimeout(Duration).perRetryTimeout - a consumer that will call methods on Duration.BuilderperRetryTimeout(Duration)HttpRetryPolicy.Builder tcpRetryEventsWithStrings(Collection<String> tcpRetryEvents)
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
tcpRetryEvents - Specify a valid value. The event occurs before any processing of a request has started and is
encountered when the upstream is temporarily or permanently unavailable.HttpRetryPolicy.Builder tcpRetryEventsWithStrings(String... tcpRetryEvents)
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
tcpRetryEvents - Specify a valid value. The event occurs before any processing of a request has started and is
encountered when the upstream is temporarily or permanently unavailable.HttpRetryPolicy.Builder tcpRetryEvents(Collection<TcpRetryPolicyEvent> tcpRetryEvents)
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
tcpRetryEvents - Specify a valid value. The event occurs before any processing of a request has started and is
encountered when the upstream is temporarily or permanently unavailable.HttpRetryPolicy.Builder tcpRetryEvents(TcpRetryPolicyEvent... tcpRetryEvents)
Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.
tcpRetryEvents - Specify a valid value. The event occurs before any processing of a request has started and is
encountered when the upstream is temporarily or permanently unavailable.Copyright © 2021. All rights reserved.