Class ServerConfiguration


  • public class ServerConfiguration
    extends Object
    • Constructor Detail

      • ServerConfiguration

        public ServerConfiguration​(String hostname)
      • ServerConfiguration

        public ServerConfiguration​(String hostname,
                                   int port,
                                   String healthPath,
                                   long dnsLookupRefreshPeriodInSeconds,
                                   long connectionHealthCheckPeriodInSeconds)
    • Method Detail

      • getHostname

        public String getHostname()
        The hostname of the HTTP client.
      • getPort

        public int getPort()
        THE TCP port of the HTTP client.
      • getHealthPath

        public String getHealthPath()
        Thea health path responding with HTTP code 2xx, 3xx, 4xx so that the client is considered healthy.
      • getDnsLookupRefreshPeriodInSeconds

        public long getDnsLookupRefreshPeriodInSeconds()
        The DNS delay in seconds to refresh the resolution of getHostname().
      • getConnectionHealthCheckPeriodInSeconds

        public long getConnectionHealthCheckPeriodInSeconds()
        The delay in seconds between health checks to getHealthPath().