Class HttpClientPoolBuilder
java.lang.Object
com.github.nhenneaux.resilienthttpclient.monitoredclientpool.HttpClientPoolBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Adds a default DnsLookupWrapper instanceAdds a default single-thread scheduled executorwithDnsLookupWrapper(DnsLookupWrapper dnsLookupWrapper) withScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) withSingleHostHttpClient(Function<InetAddress, HttpClient> singleHostHttpClientFunction)
-
Method Details
-
withDnsLookupWrapper
-
withDefaultDnsLookupWrapper
Adds a default DnsLookupWrapper instance -
withScheduledExecutorService
public HttpClientPoolBuilder withScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) -
withDefaultScheduledExecutorService
Adds a default single-thread scheduled executor -
withSingleHostHttpClient
public HttpClientPoolBuilder withSingleHostHttpClient(Function<InetAddress, HttpClient> singleHostHttpClientFunction) -
build
-