public static interface CrtConnectionHealthConfiguration.Builder
CrtConnectionHealthConfiguration.
All implementations of this interface are mutable and not thread safe.
| Modifier and Type | Method and Description |
|---|---|
CrtConnectionHealthConfiguration |
build() |
CrtConnectionHealthConfiguration.Builder |
minimumThroughputInBps(Long minimumThroughputInBps)
Sets a throughput threshold for connections.
|
CrtConnectionHealthConfiguration.Builder |
minimumThroughputTimeout(Duration minimumThroughputTimeout)
Sets how long a connection is allowed to be unhealthy before getting shut down.
|
CrtConnectionHealthConfiguration.Builder minimumThroughputInBps(Long minimumThroughputInBps)
minimumThroughputInBps - minimum amount of throughput, in bytes per second, for a connection to be
considered healthy.CrtConnectionHealthConfiguration.Builder minimumThroughputTimeout(Duration minimumThroughputTimeout)
It only supports seconds precision
minimumThroughputTimeout - How long a connection is allowed to be unhealthy
before getting shut down.CrtConnectionHealthConfiguration build()
Copyright © 2023. All rights reserved.