Class ServerConfiguration
- java.lang.Object
-
- com.github.nhenneaux.resilienthttpclient.singlehostclient.ServerConfiguration
-
public class ServerConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerConfiguration(String hostname)ServerConfiguration(String hostname, int port, String healthPath, long dnsLookupRefreshPeriodInSeconds, long connectionHealthCheckPeriodInSeconds, long readTimeoutInMilliseconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetConnectionHealthCheckPeriodInSeconds()The delay in seconds between health checks togetHealthPath().longgetDnsLookupRefreshPeriodInSeconds()The DNS delay in seconds to refresh the resolution ofgetHostname().StringgetHealthPath()The health path responding with HTTP code 2xx, 3xx, 4xx so that the client is considered healthy.StringgetHostname()The hostname of the HTTP client.intgetPort()The TCP port of the HTTP client.longgetReadTimeoutInMilliseconds()The read timeout in ms.StringtoString()
-
-
-
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()
The 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 ofgetHostname().
-
getConnectionHealthCheckPeriodInSeconds
public long getConnectionHealthCheckPeriodInSeconds()
The delay in seconds between health checks togetHealthPath().
-
getReadTimeoutInMilliseconds
public long getReadTimeoutInMilliseconds()
The read timeout in ms. By default it has a value of "-1" which interpreted as no read timeout specified.
-
-