Class HttpClientConfig


  • public class HttpClientConfig
    extends Object
    • Constructor Detail

      • HttpClientConfig

        public HttpClientConfig()
    • 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