protected abstract static class CrtConnectionHealthConfiguration.DefaultBuilder<B extends CrtConnectionHealthConfiguration.Builder> extends Object implements CrtConnectionHealthConfiguration.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultBuilder() |
protected |
DefaultBuilder(CrtConnectionHealthConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
B |
minimumThroughputInBps(Long minimumThroughputInBps)
Sets a throughput threshold for connections.
|
B |
minimumThroughputTimeout(Duration minimumThroughputTimeout)
Sets how long a connection is allowed to be unhealthy before getting shut down.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildprotected DefaultBuilder()
protected DefaultBuilder(CrtConnectionHealthConfiguration configuration)
public B minimumThroughputInBps(Long minimumThroughputInBps)
CrtConnectionHealthConfiguration.BuilderminimumThroughputInBps in interface CrtConnectionHealthConfiguration.BuilderminimumThroughputInBps - minimum amount of throughput, in bytes per second, for a connection to be
considered healthy.public B minimumThroughputTimeout(Duration minimumThroughputTimeout)
CrtConnectionHealthConfiguration.BuilderIt only supports seconds precision
minimumThroughputTimeout in interface CrtConnectionHealthConfiguration.BuilderminimumThroughputTimeout - How long a connection is allowed to be unhealthy
before getting shut down.Copyright © 2023. All rights reserved.