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