Package io.vertx.grpc.client
Interface GrpcClientBuilder<C>
-
public interface GrpcClientBuilder<C>
A builder forGrpcClient
.- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description C
build()
Build and return the client.GrpcClientBuilder<C>
with(HttpClientOptions transportOptions)
Configure the client HTTP transport options.GrpcClientBuilder<C>
with(GrpcClientOptions options)
Configure the client options.GrpcClientBuilder<C>
withAddressResolver(AddressResolver resolver)
Configure the client to use a specific address resolver.GrpcClientBuilder<C>
withLoadBalancer(LoadBalancer loadBalancer)
Configure the client to use a load balancer.
-
-
-
Method Detail
-
with
GrpcClientBuilder<C> with(GrpcClientOptions options)
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
-
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
-
-