Interface GrpcClientBuilder<C>


public interface GrpcClientBuilder<C>
A builder for GrpcClient.
Author:
Julien Viet
  • Method Details

    • with

      Configure the client options.
      Parameters:
      options - the client options
      Returns:
      a reference to this, so the API can be used fluently
    • with

      GrpcClientBuilder<C> with(HttpClientOptions transportOptions)
      Configure the client HTTP transport options.
      Parameters:
      transportOptions - the client transport options
      Returns:
      a reference to this, so the API can be used fluently
    • with

      GrpcClientBuilder<C> with(HttpClientConfig transportConfig)
      Configure the client HTTP transport options.
      Parameters:
      transportConfig - the client transport options
      Returns:
      a reference to this, so the API can be used fluently
    • with

      Configure the client HTTP transport options.
      Parameters:
      sslOptions - the client transport options
      Returns:
      a reference to this, so the API can be used fluently
    • withAddressResolver

      GrpcClientBuilder<C> withAddressResolver(AddressResolver resolver)
      Configure the client to use a specific address resolver.
      Parameters:
      resolver - the address resolver
    • withLoadBalancer

      GrpcClientBuilder<C> withLoadBalancer(LoadBalancer loadBalancer)
      Configure the client to use a load balancer.
      Parameters:
      loadBalancer - the load balancer
    • build

      C build()
      Build and return the client.
      Returns:
      the client as configured by this builder