Interface GrpcClientBuilder.MultiClientBuilder

Enclosing interface:
GrpcClientBuilder<U,R>

public static interface GrpcClientBuilder.MultiClientBuilder
An interface to create multiple gRPC clients that share the underlying transport. It is meant for a single backend that hosts different service APIs.
  • Method Details

    • build

      <Client extends GrpcClient<?>> Client build(GrpcClientFactory<Client,?> clientFactory)
      Builds a gRPC client.
      Type Parameters:
      Client - gRPC service that any client built from this factory represents.
      Parameters:
      clientFactory - GrpcClientFactory to use.
      Returns:
      A gRPC client.
    • buildBlocking

      <BlockingClient extends BlockingGrpcClient<?>> BlockingClient buildBlocking(GrpcClientFactory<?,BlockingClient> clientFactory)
      Builds a blocking gRPC client.
      Type Parameters:
      BlockingClient - Blocking gRPC service that any client built from this builder represents.
      Parameters:
      clientFactory - GrpcClientFactory to use.
      Returns:
      A blocking gRPC client.