Class VertxAsyncHttpClientBuilder

java.lang.Object
com.azure.core.http.vertx.VertxAsyncHttpClientBuilder

public class VertxAsyncHttpClientBuilder extends Object
Builds a VertxAsyncHttpClient.
  • Constructor Details

    • VertxAsyncHttpClientBuilder

      public VertxAsyncHttpClientBuilder()
  • Method Details

    • readIdleTimeout

      public VertxAsyncHttpClientBuilder readIdleTimeout(Duration readIdleTimeout)
      Sets the read idle timeout. The default read idle timeout is 60 seconds.
      Parameters:
      readIdleTimeout - the read idle timeout
      Returns:
      the updated VertxAsyncHttpClientBuilder object
    • writeIdleTimeout

      public VertxAsyncHttpClientBuilder writeIdleTimeout(Duration writeIdleTimeout)
      Sets the write idle timeout. The default read idle timeout is 60 seconds.
      Parameters:
      writeIdleTimeout - the write idle timeout
      Returns:
      the updated VertxAsyncHttpClientBuilder object
    • connectTimeout

      public VertxAsyncHttpClientBuilder connectTimeout(Duration connectTimeout)
      Sets the connect timeout. The default connect timeout is 10 seconds.
      Parameters:
      connectTimeout - the connection timeout
      Returns:
      the updated VertxAsyncHttpClientBuilder object
    • idleTimeout

      public VertxAsyncHttpClientBuilder idleTimeout(Duration idleTimeout)
      Sets the connection idle timeout. The default connect timeout is 60 seconds.
      Parameters:
      idleTimeout - the connection idle timeout
      Returns:
      the updated VertxAsyncHttpClientBuilder object
    • proxy

      public VertxAsyncHttpClientBuilder proxy(ProxyOptions proxyOptions)
      Sets proxy configuration.
      Parameters:
      proxyOptions - The proxy configuration to use.
      Returns:
      The updated VertxAsyncHttpClientBuilder object.
    • configuration

      public VertxAsyncHttpClientBuilder configuration(Configuration configuration)
      Sets the configuration store that is used during construction of the HTTP client.

      The default configuration store is a clone of the global configuration store, use Configuration.NONE to bypass using configuration settings during construction.

      Parameters:
      configuration - The configuration store.
      Returns:
      The updated VertxAsyncHttpClientBuilder object.
    • httpClientOptions

      public VertxAsyncHttpClientBuilder httpClientOptions(io.vertx.core.http.HttpClientOptions httpClientOptions)
      Sets custom HttpClientOptions for the constructed HttpClient.
      Parameters:
      httpClientOptions - The options of the web client.
      Returns:
      The updated VertxAsyncHttpClientBuilder object
    • vertx

      public VertxAsyncHttpClientBuilder vertx(io.vertx.core.Vertx vertx)
      Sets a custom Vertx instance that the constructed HttpClient will be created with.
      Parameters:
      vertx - The vertx instance.
      Returns:
      The updated VertxAsyncHttpClientBuilder object
    • build

      public HttpClient build()
      Creates a new Vert.x HttpClient instance on every call, using the configuration set in the builder at the time of the build method call.
      Returns:
      A new Vert.x backed HttpClient instance.