Interface GrpcTimeout.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GrpcTimeout.Builder,GrpcTimeout>,SdkBuilder<GrpcTimeout.Builder,GrpcTimeout>,SdkPojo
- Enclosing class:
- GrpcTimeout
public static interface GrpcTimeout.Builder extends SdkPojo, CopyableBuilder<GrpcTimeout.Builder,GrpcTimeout>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GrpcTimeout.Builderidle(Consumer<Duration.Builder> idle)An object that represents an idle timeout.GrpcTimeout.Builderidle(Duration idle)An object that represents an idle timeout.default GrpcTimeout.BuilderperRequest(Consumer<Duration.Builder> perRequest)An object that represents a per request timeout.GrpcTimeout.BuilderperRequest(Duration perRequest)An object that represents a per request timeout.-
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 Detail
-
idle
GrpcTimeout.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
idle
default GrpcTimeout.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 method that creates an instance of theDuration.Builderavoiding the need to create one manually viaDuration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toidle(Duration).- Parameters:
idle- 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:
idle(Duration)
-
perRequest
GrpcTimeout.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
perRequest
default GrpcTimeout.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 method that creates an instance of theDuration.Builderavoiding the need to create one manually viaDuration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toperRequest(Duration).- Parameters:
perRequest- 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:
perRequest(Duration)
-
-