Class ApacheHttpClientChannels.ClientBuilder

  • Enclosing class:
    ApacheHttpClientChannels

    public static final class ApacheHttpClientChannels.ClientBuilder
    extends java.lang.Object
    • Method Detail

      • clientName

        public ApacheHttpClientChannels.ClientBuilder clientName​(@Safe
                                                                 java.lang.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

        public ApacheHttpClientChannels.ClientBuilder executor​(java.util.concurrent.ExecutorService value)
        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.