Class JaxRsClient

java.lang.Object
io.helidon.webclient.jaxrs.JaxRsClient

public final class JaxRsClient extends Object
Point of access to ClientBuilder to support Helidon features, such as propagation of tracing, correct handling of Context.
  • Method Details

    • configureDefaults

      public static void configureDefaults(Config config)
      Configure defaults for all clients created. Configuration options:
      Configuration parameters
      key default value description
      executor ThreadPoolSupplier.create(io.helidon.config.Config, String) Default executor service to use for asynchronous operations. For configuration options of executor, please refer to ThreadPoolSupplier.Builder.config(io.helidon.config.Config)
      Parameters:
      config - configuration to use to configure JAX-RS clients defaults
    • defaultExecutor

      public static void defaultExecutor(Supplier<ExecutorService> executorServiceSupplier)
      Configure the default executor supplier to be used for asynchronous requests when explicit supplier is not provided.
      Parameters:
      executorServiceSupplier - supplier that provides the executor service