Package ratpack.dropwizard.metrics
Class HttpClientConfig
- java.lang.Object
-
- ratpack.dropwizard.metrics.HttpClientConfig
-
public class HttpClientConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpClientConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
The state of HttpClient metrics.- Returns:
- the state of the HttpClient metrics
-
enable
public HttpClientConfig enable(boolean enabled)
Set the state of HttpClient metrics.Default is false.
- Parameters:
enabled
- True if HttpClient metrics are published. False otherwise- Returns:
this
-
getPollingFrequencyInSeconds
public int getPollingFrequencyInSeconds()
The frequency in seconds of which the HttpClient metrics will be refreshed.Default is 30 seconds.
- Returns:
- Number of seconds to wait between polling HttpClient for metrics.
-
pollingFrequencyInSeconds
public HttpClientConfig pollingFrequencyInSeconds(int seconds)
The frequency in seconds of which the HttpClient metrics will be refreshed.- Parameters:
seconds
- Frequency in seconds of which to refresh HttpClient metrics.- Returns:
- this
-
-