public static interface HttpTimeout.Builder extends SdkPojo, CopyableBuilder<HttpTimeout.Builder,HttpTimeout>
| Modifier and Type | Method and Description |
|---|---|
default HttpTimeout.Builder |
idle(Consumer<Duration.Builder> idle)
An object that represents an idle timeout.
|
HttpTimeout.Builder |
idle(Duration idle)
An object that represents an idle timeout.
|
default HttpTimeout.Builder |
perRequest(Consumer<Duration.Builder> perRequest)
An object that represents a per request timeout.
|
HttpTimeout.Builder |
perRequest(Duration perRequest)
An object that represents a per request timeout.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHttpTimeout.Builder idle(Duration idle)
An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
idle - An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection
may be idle. The default value is none.default HttpTimeout.Builder idle(Consumer<Duration.Builder> idle)
An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
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 idle(Duration).idle - a consumer that will call methods on Duration.Builderidle(Duration)HttpTimeout.Builder perRequest(Duration perRequest)
An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
perRequest - An object that represents a per request timeout. The default value is 15 seconds. If you set a higher
timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For
example, if a virtual node backend uses a virtual router provider to route to another virtual node,
then the timeout should be greater than 15 seconds for the source and destination virtual node and the
route.default HttpTimeout.Builder perRequest(Consumer<Duration.Builder> perRequest)
An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.
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 perRequest(Duration).perRequest - a consumer that will call methods on Duration.BuilderperRequest(Duration)Copyright © 2021. All rights reserved.