@Stability(value=Stable) public static final class GrpcRetryPolicy.Builder extends Object implements software.amazon.jsii.Builder<GrpcRetryPolicy>
GrpcRetryPolicy| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GrpcRetryPolicy |
build()
Builds the configured instance.
|
GrpcRetryPolicy.Builder |
grpcRetryEvents(List<? extends GrpcRetryEvent> grpcRetryEvents)
Sets the value of
GrpcRetryPolicy.getGrpcRetryEvents() |
GrpcRetryPolicy.Builder |
httpRetryEvents(List<? extends HttpRetryEvent> httpRetryEvents)
Sets the value of
HttpRetryPolicy.getHttpRetryEvents() |
GrpcRetryPolicy.Builder |
retryAttempts(Number retryAttempts)
Sets the value of
HttpRetryPolicy.getRetryAttempts() |
GrpcRetryPolicy.Builder |
retryTimeout(Duration retryTimeout)
Sets the value of
HttpRetryPolicy.getRetryTimeout() |
GrpcRetryPolicy.Builder |
tcpRetryEvents(List<? extends TcpRetryEvent> tcpRetryEvents)
Sets the value of
HttpRetryPolicy.getTcpRetryEvents() |
@Stability(value=Stable) public GrpcRetryPolicy.Builder grpcRetryEvents(List<? extends GrpcRetryEvent> grpcRetryEvents)
GrpcRetryPolicy.getGrpcRetryEvents()grpcRetryEvents - gRPC events on which to retry.
You must specify at least one value
for at least one types of retry events.this@Stability(value=Stable) public GrpcRetryPolicy.Builder retryAttempts(Number retryAttempts)
HttpRetryPolicy.getRetryAttempts()retryAttempts - The maximum number of retry attempts. This parameter is required.this@Stability(value=Stable) public GrpcRetryPolicy.Builder retryTimeout(Duration retryTimeout)
HttpRetryPolicy.getRetryTimeout()retryTimeout - The timeout for each retry attempt. This parameter is required.this@Stability(value=Stable) public GrpcRetryPolicy.Builder httpRetryEvents(List<? extends HttpRetryEvent> httpRetryEvents)
HttpRetryPolicy.getHttpRetryEvents()httpRetryEvents - Specify HTTP events on which to retry.
You must specify at least one value
for at least one types of retry events.this@Stability(value=Stable) public GrpcRetryPolicy.Builder tcpRetryEvents(List<? extends TcpRetryEvent> tcpRetryEvents)
HttpRetryPolicy.getTcpRetryEvents()tcpRetryEvents - TCP events on which to retry.
The event occurs before any processing of a
request has started and is encountered when the upstream is temporarily or
permanently unavailable. You must specify at least one value for at least
one types of retry events.this@Stability(value=Stable) public GrpcRetryPolicy build()
build in interface software.amazon.jsii.Builder<GrpcRetryPolicy>GrpcRetryPolicyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.