Package com.palantir.dialogue.hc4
Class ApacheHttpClientChannels.ClientBuilder
- java.lang.Object
-
- com.palantir.dialogue.hc4.ApacheHttpClientChannels.ClientBuilder
-
- Enclosing class:
- ApacheHttpClientChannels
public static final class ApacheHttpClientChannels.ClientBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApacheHttpClientChannels.CloseableClientbuild()ApacheHttpClientChannels.ClientBuilderclientConfiguration(com.palantir.conjure.java.client.config.ClientConfiguration value)ApacheHttpClientChannels.ClientBuilderclientName(java.lang.String value)Safeloggable identifier used to identify this client instance for instrumentation purposes.ApacheHttpClientChannels.ClientBuilderexecutor(java.util.concurrent.ExecutorService value)Configures theExecutorServiceused to execute blocking http requests.
-
-
-
Method Detail
-
clientConfiguration
public ApacheHttpClientChannels.ClientBuilder clientConfiguration(com.palantir.conjure.java.client.config.ClientConfiguration value)
-
clientName
public ApacheHttpClientChannels.ClientBuilder clientName(@Safe java.lang.String value)
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
public ApacheHttpClientChannels.ClientBuilder executor(java.util.concurrent.ExecutorService value)
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.
-
build
public ApacheHttpClientChannels.CloseableClient build()
-
-