Package ratpack.dropwizard.metrics
Class HttpClientConfig
- java.lang.Object
- 
- ratpack.dropwizard.metrics.HttpClientConfig
 
- 
 public class HttpClientConfig extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description HttpClientConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientConfigenable(boolean enabled)Set the state of HttpClient metrics.intgetPollingFrequencyInSeconds()The frequency in seconds of which the HttpClient metrics will be refreshed.booleanisEnabled()The state of HttpClient metrics.HttpClientConfigpollingFrequencyInSeconds(int seconds)The frequency in seconds of which the HttpClient metrics will be refreshed.
 
- 
- 
- 
Method Detail- 
isEnabledpublic boolean isEnabled() The state of HttpClient metrics.- Returns:
- the state of the HttpClient metrics
 
 - 
enablepublic 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
 
 - 
getPollingFrequencyInSecondspublic 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.
 
 - 
pollingFrequencyInSecondspublic 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
 
 
- 
 
-