Class ApacheHttpClientChannels.ClientBuilder

java.lang.Object
com.palantir.dialogue.hc5.ApacheHttpClientChannels.ClientBuilder
Enclosing class:
ApacheHttpClientChannels

public static final class ApacheHttpClientChannels.ClientBuilder extends Object
  • Method Details

    • clientConfiguration

      public ApacheHttpClientChannels.ClientBuilder clientConfiguration(com.palantir.conjure.java.client.config.ClientConfiguration value)
    • clientName

      public ApacheHttpClientChannels.ClientBuilder clientName(@Safe @Safe String value)
      Safe loggable 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 the ExecutorService used to execute blocking http requests. If no executor is 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 the DialogueDnsResolver used to look up addresses. If no resolver is provided, the httpclient5 default will be used.
    • build