Interface GrpcRetryPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GrpcRetryPolicy.Builder,
,GrpcRetryPolicy> SdkBuilder<GrpcRetryPolicy.Builder,
,GrpcRetryPolicy> SdkPojo
- Enclosing class:
GrpcRetryPolicy
-
Method Summary
Modifier and TypeMethodDescriptiongrpcRetryEvents
(Collection<GrpcRetryPolicyEvent> grpcRetryEvents) Specify at least one of the valid values.grpcRetryEvents
(GrpcRetryPolicyEvent... grpcRetryEvents) Specify at least one of the valid values.grpcRetryEventsWithStrings
(String... grpcRetryEvents) Specify at least one of the valid values.grpcRetryEventsWithStrings
(Collection<String> grpcRetryEvents) Specify at least one of the valid values.httpRetryEvents
(String... httpRetryEvents) Specify at least one of the following values.httpRetryEvents
(Collection<String> httpRetryEvents) Specify at least one of the following values.maxRetries
(Long maxRetries) The maximum number of retry attempts.default GrpcRetryPolicy.Builder
perRetryTimeout
(Consumer<Duration.Builder> perRetryTimeout) The timeout for each retry attempt.perRetryTimeout
(Duration perRetryTimeout) The timeout for each retry attempt.tcpRetryEvents
(Collection<TcpRetryPolicyEvent> tcpRetryEvents) Specify a valid value.tcpRetryEvents
(TcpRetryPolicyEvent... tcpRetryEvents) Specify a valid value.tcpRetryEventsWithStrings
(String... tcpRetryEvents) Specify a valid value.tcpRetryEventsWithStrings
(Collection<String> tcpRetryEvents) Specify a valid value.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
grpcRetryEventsWithStrings
Specify at least one of the valid values.
- Parameters:
grpcRetryEvents
- Specify at least one of the valid values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grpcRetryEventsWithStrings
Specify at least one of the valid values.
- Parameters:
grpcRetryEvents
- Specify at least one of the valid values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grpcRetryEvents
Specify at least one of the valid values.
- Parameters:
grpcRetryEvents
- Specify at least one of the valid values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grpcRetryEvents
Specify at least one of the valid values.
- Parameters:
grpcRetryEvents
- Specify at least one of the valid values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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
- Parameters:
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
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
maxRetries
The maximum number of retry attempts.
- Parameters:
maxRetries
- The maximum number of retry attempts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
perRetryTimeout
The timeout for each retry attempt.
- Parameters:
perRetryTimeout
- The timeout for each retry attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
perRetryTimeout
The timeout for each retry attempt.
This is a convenience method that creates an instance of theDuration.Builder
avoiding the need to create one manually viaDuration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toperRetryTimeout(Duration)
.- Parameters:
perRetryTimeout
- a consumer that will call methods onDuration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tcpRetryEventsWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tcpRetryEventsWithStrings
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-