Package software.amazon.awssdk.crtcore
Interface CrtConnectionHealthConfiguration.Builder
-
- All Known Implementing Classes:
CrtConnectionHealthConfiguration.DefaultBuilder
- Enclosing class:
- CrtConnectionHealthConfiguration
public static interface CrtConnectionHealthConfiguration.BuilderA builder forCrtConnectionHealthConfiguration.All implementations of this interface are mutable and not thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CrtConnectionHealthConfigurationbuild()CrtConnectionHealthConfiguration.BuilderminimumThroughputInBps(Long minimumThroughputInBps)Sets a throughput threshold for connections.CrtConnectionHealthConfiguration.BuilderminimumThroughputTimeout(Duration minimumThroughputTimeout)Sets how long a connection is allowed to be unhealthy before getting shut down.
-
-
-
Method Detail
-
minimumThroughputInBps
CrtConnectionHealthConfiguration.Builder minimumThroughputInBps(Long minimumThroughputInBps)
Sets a throughput threshold for connections. Throughput below this value will be considered unhealthy.- Parameters:
minimumThroughputInBps- minimum amount of throughput, in bytes per second, for a connection to be considered healthy.- Returns:
- Builder
-
minimumThroughputTimeout
CrtConnectionHealthConfiguration.Builder minimumThroughputTimeout(Duration minimumThroughputTimeout)
Sets how long a connection is allowed to be unhealthy before getting shut down.It only supports seconds precision
- Parameters:
minimumThroughputTimeout- How long a connection is allowed to be unhealthy before getting shut down.- Returns:
- Builder
-
build
CrtConnectionHealthConfiguration build()
-
-