public class HttpMonitoringOptions extends Object
Constructor and Description |
---|
HttpMonitoringOptions()
Creates a new set of monitoring options
|
Modifier and Type | Method and Description |
---|---|
int |
getAllowableThroughputFailureIntervalSeconds() |
long |
getMinThroughputBytesPerSecond() |
void |
setAllowableThroughputFailureIntervalSeconds(int allowableThroughputFailureIntervalSeconds)
Sets how long, in seconds, a connection is allowed to be unhealthy before getting shut down.
|
void |
setMinThroughputBytesPerSecond(long minThroughputBytesPerSecond)
Sets a throughput threshold for connections.
|
public HttpMonitoringOptions()
public void setMinThroughputBytesPerSecond(long minThroughputBytesPerSecond)
minThroughputBytesPerSecond
- minimum amount of throughput, in bytes per second, for a connection to be
considered healthy.public long getMinThroughputBytesPerSecond()
public void setAllowableThroughputFailureIntervalSeconds(int allowableThroughputFailureIntervalSeconds)
allowableThroughputFailureIntervalSeconds
- How long, in seconds, a connection is allowed to be unhealthy
before getting shut down.public int getAllowableThroughputFailureIntervalSeconds()
Copyright © 2021. All rights reserved.