Package io.servicetalk.grpc.api
Interface GrpcClientBuilder.MultiClientBuilder
-
- Enclosing class:
- GrpcClientBuilder<U,R>
public static interface GrpcClientBuilder.MultiClientBuilder
An interface to create multiple gRPC clients sharing the same underlying transport instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Client extends GrpcClient<?>,Filter extends FilterableClient,FilterableClient extends FilterableGrpcClient,FilterFactory extends GrpcClientFilterFactory<Filter,FilterableClient>>
Clientbuild(GrpcClientFactory<Client,?,Filter,FilterableClient,FilterFactory> clientFactory)
Builds a gRPC client.<BlockingClient extends BlockingGrpcClient<?>,Filter extends FilterableClient,FilterableClient extends FilterableGrpcClient,FilterFactory extends GrpcClientFilterFactory<Filter,FilterableClient>>
BlockingClientbuildBlocking(GrpcClientFactory<?,BlockingClient,Filter,FilterableClient,FilterFactory> clientFactory)
Builds a blocking gRPC client.
-
-
-
Method Detail
-
build
<Client extends GrpcClient<?>,Filter extends FilterableClient,FilterableClient extends FilterableGrpcClient,FilterFactory extends GrpcClientFilterFactory<Filter,FilterableClient>> Client build(GrpcClientFactory<Client,?,Filter,FilterableClient,FilterFactory> clientFactory)
Builds a gRPC client.- Type Parameters:
Client
- gRPC service that any client built from this factory represents.Filter
- Type for client filterFilterableClient
- Type of filterable client.FilterFactory
- Type ofGrpcClientFilterFactory
- Parameters:
clientFactory
-GrpcClientFactory
to use.- Returns:
- A gRPC client.
-
buildBlocking
<BlockingClient extends BlockingGrpcClient<?>,Filter extends FilterableClient,FilterableClient extends FilterableGrpcClient,FilterFactory extends GrpcClientFilterFactory<Filter,FilterableClient>> BlockingClient buildBlocking(GrpcClientFactory<?,BlockingClient,Filter,FilterableClient,FilterFactory> clientFactory)
Builds a blocking gRPC client.- Type Parameters:
BlockingClient
- Blocking gRPC service that any client built from this builder represents.Filter
- Type for client filterFilterableClient
- Type of filterable client.FilterFactory
- Type ofGrpcClientFilterFactory
- Parameters:
clientFactory
-GrpcClientFactory
to use.- Returns:
- A blocking gRPC client.
-
-