Class ServerConfiguration
java.lang.Object
com.github.nhenneaux.resilienthttpclient.singlehostclient.ServerConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionServerConfiguration(String hostname) ServerConfiguration(String hostname, int port) ServerConfiguration(String hostname, int port, String healthPath, long dnsLookupRefreshPeriodInSeconds, long connectionHealthCheckPeriodInSeconds, long readTimeoutInMilliseconds) -
Method Summary
Modifier and TypeMethodDescriptionlongThe delay in seconds between health checks togetHealthPath().longThe DNS delay in seconds to refresh the resolution ofgetHostname().The health path responding with HTTP code 2xx, 3xx, 4xx so that the client is considered healthy.The hostname of the HTTP client.intgetPort()The TCP port of the HTTP client, -1 if the port is not set.longThe read timeout in ms.toString()
-
Constructor Details
-
ServerConfiguration
-
ServerConfiguration
-
ServerConfiguration
-
-
Method Details
-
getHostname
The hostname of the HTTP client. -
getPort
public int getPort()The TCP port of the HTTP client, -1 if the port is not set. -
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. -
toString
-