Class ApacheHttpClientChannels.ClientBuilder
java.lang.Object
com.palantir.dialogue.hc5.ApacheHttpClientChannels.ClientBuilder
- Enclosing class:
ApacheHttpClientChannels
-
Method Summary
Modifier and TypeMethodDescriptionbuild()clientConfiguration(com.palantir.conjure.java.client.config.ClientConfiguration value) clientName(@Safe String value) Safeloggable identifier used to identify this client instance for instrumentation purposes.dnsResolver(com.palantir.dialogue.core.DialogueDnsResolver value) Configures theDialogueDnsResolverused to look up addresses.executor(ExecutorService value) Configures theExecutorServiceused to execute blocking http requests.
-
Method Details
-
clientConfiguration
public ApacheHttpClientChannels.ClientBuilder clientConfiguration(com.palantir.conjure.java.client.config.ClientConfiguration value) -
clientName
Safeloggable identifier used to identify this client instance for instrumentation purposes. While this value does not impact behavior, using a unique value for each client makes it much easier to monitor and debug the RPC stack. -
executor
Configures theExecutorServiceused to execute blocking http requests. If noexecutoris provided, a singleton will be used. It's strongly recommended that custom executors support tracing-java. Cached executors are the best fit because we use concurrency limiters to bound concurrent requests. -
dnsResolver
public ApacheHttpClientChannels.ClientBuilder dnsResolver(com.palantir.dialogue.core.DialogueDnsResolver value) Configures theDialogueDnsResolverused to look up addresses. If noresolveris provided, the httpclient5 default will be used. -
build
-