public class HttpClientConfig
extends java.lang.Object
Constructor and Description |
---|
HttpClientConfig() |
Modifier and Type | Method and Description |
---|---|
HttpClientConfig |
enable(boolean enabled)
Set the state of HttpClient metrics.
|
int |
getPollingFrequencyInSeconds()
The frequency in seconds of which the HttpClient metrics will be refreshed.
|
boolean |
isEnabled()
The state of HttpClient metrics.
|
HttpClientConfig |
pollingFrequencyInSeconds(int seconds)
The frequency in seconds of which the HttpClient metrics will be refreshed.
|
public boolean isEnabled()
public HttpClientConfig enable(boolean enabled)
Default is false.
enabled
- True if HttpClient metrics are published. False otherwisethis
public int getPollingFrequencyInSeconds()
Default is 30 seconds.
public HttpClientConfig pollingFrequencyInSeconds(int seconds)
seconds
- Frequency in seconds of which to refresh HttpClient metrics.