Package software.amazon.awssdk.crtcore
Class CrtConnectionHealthConfiguration.DefaultBuilder<B extends CrtConnectionHealthConfiguration.Builder>
- java.lang.Object
-
- software.amazon.awssdk.crtcore.CrtConnectionHealthConfiguration.DefaultBuilder<B>
-
- All Implemented Interfaces:
CrtConnectionHealthConfiguration.Builder
- Enclosing class:
- CrtConnectionHealthConfiguration
protected abstract static class CrtConnectionHealthConfiguration.DefaultBuilder<B extends CrtConnectionHealthConfiguration.Builder> extends Object implements CrtConnectionHealthConfiguration.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultBuilder()protectedDefaultBuilder(CrtConnectionHealthConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BminimumThroughputInBps(Long minimumThroughputInBps)Sets a throughput threshold for connections.BminimumThroughputTimeout(Duration minimumThroughputTimeout)Sets how long a connection is allowed to be unhealthy before getting shut down.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.crtcore.CrtConnectionHealthConfiguration.Builder
build
-
-
-
-
Constructor Detail
-
DefaultBuilder
protected DefaultBuilder()
-
DefaultBuilder
protected DefaultBuilder(CrtConnectionHealthConfiguration configuration)
-
-
Method Detail
-
minimumThroughputInBps
public B minimumThroughputInBps(Long minimumThroughputInBps)
Description copied from interface:CrtConnectionHealthConfiguration.BuilderSets a throughput threshold for connections. Throughput below this value will be considered unhealthy.- Specified by:
minimumThroughputInBpsin interfaceCrtConnectionHealthConfiguration.Builder- Parameters:
minimumThroughputInBps- minimum amount of throughput, in bytes per second, for a connection to be considered healthy.- Returns:
- Builder
-
minimumThroughputTimeout
public B minimumThroughputTimeout(Duration minimumThroughputTimeout)
Description copied from interface:CrtConnectionHealthConfiguration.BuilderSets how long a connection is allowed to be unhealthy before getting shut down.It only supports seconds precision
- Specified by:
minimumThroughputTimeoutin interfaceCrtConnectionHealthConfiguration.Builder- Parameters:
minimumThroughputTimeout- How long a connection is allowed to be unhealthy before getting shut down.- Returns:
- Builder
-
-