- All Superinterfaces:
RuntimeType.Api<GrpcClientConfig>
gRPC client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Protocol<GrpcClient, GrpcClientProtocolConfig> Protocol to use to obtain an instance of gRPC specific client fromWebClient.client(io.helidon.webclient.spi.Protocol).static final StringProtocol ID constant for gRPC. -
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcClientConfig.Builderbuilder()A new fluent API builder to customize client setup.io.grpc.Channelchannel()Create a gRPC channel for this client that can be used to create stubs.io.grpc.Channelchannel(io.grpc.ClientInterceptor... interceptors) Create a gRPC channel for this client that can be used to create stubs.default io.grpc.Channelchannel(Collection<io.grpc.ClientInterceptor> interceptors) Create a gRPC channel for this client that can be used to create stubs.Configuration for this gRPC client.static GrpcClientcreate()Create a new instance with default configuration.static GrpcClientcreate(GrpcClientConfig clientConfig) Create a new instance with custom configuration.static GrpcClientcreate(Consumer<GrpcClientConfig.Builder> consumer) Create a new instance customizing its configuration.serviceClient(GrpcServiceDescriptor descriptor) Create a client for a specific service.Methods inherited from interface io.helidon.builder.api.RuntimeType.Api
prototype
-
Field Details
-
PROTOCOL_ID
Protocol ID constant for gRPC.- See Also:
-
PROTOCOL
Protocol to use to obtain an instance of gRPC specific client fromWebClient.client(io.helidon.webclient.spi.Protocol).
-
-
Method Details
-
builder
A new fluent API builder to customize client setup.- Returns:
- a new builder
-
create
Create a new instance with custom configuration.- Parameters:
clientConfig- HTTP/2 client configuration- Returns:
- a new HTTP/2 client
-
create
Create a new instance customizing its configuration.- Parameters:
consumer- HTTP/2 client configuration- Returns:
- a new HTTP/2 client
-
create
Create a new instance with default configuration.- Returns:
- a new HTTP/2 client
-
serviceClient
Create a client for a specific service. The client will be backed by the same HTTP/2 client.- Parameters:
descriptor- descriptor to use- Returns:
- client for the provided descriptor
-
channel
io.grpc.Channel channel()Create a gRPC channel for this client that can be used to create stubs.- Returns:
- a new gRPC channel
-
channel
io.grpc.Channel channel(io.grpc.ClientInterceptor... interceptors) Create a gRPC channel for this client that can be used to create stubs.- Parameters:
interceptors- the array of client interceptors- Returns:
- a new gRPC channel
-
channel
Create a gRPC channel for this client that can be used to create stubs.- Parameters:
interceptors- the list of client interceptors- Returns:
- a new gRPC channel
-
clientConfig
GrpcClientConfig clientConfig()Configuration for this gRPC client.- Returns:
- the configuration
-