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