java.lang.Object
io.helidon.webclient.grpc.GrpcProtocolProvider
- All Implemented Interfaces:
ClientProtocolProvider<GrpcClient,
GrpcClientProtocolConfig>
public class GrpcProtocolProvider
extends Object
implements ClientProtocolProvider<GrpcClient,GrpcClientProtocolConfig>
Provider for
GrpcClient
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionType of the config object.Default configuration of this protocol.protocol
(WebClient client, GrpcClientProtocolConfig config) Create a protocol client instance.Protocol id for ALPN (protocol negotiation when using TLS).
-
Constructor Details
-
GrpcProtocolProvider
public GrpcProtocolProvider()Public constructor required byServiceLoader
.
-
-
Method Details
-
protocolId
Description copied from interface:ClientProtocolProvider
Protocol id for ALPN (protocol negotiation when using TLS).- Specified by:
protocolId
in interfaceClientProtocolProvider<GrpcClient,
GrpcClientProtocolConfig> - Returns:
- protocol id
-
configType
Description copied from interface:ClientProtocolProvider
Type of the config object.- Specified by:
configType
in interfaceClientProtocolProvider<GrpcClient,
GrpcClientProtocolConfig> - Returns:
- config type
-
defaultConfig
Description copied from interface:ClientProtocolProvider
Default configuration of this protocol.- Specified by:
defaultConfig
in interfaceClientProtocolProvider<GrpcClient,
GrpcClientProtocolConfig> - Returns:
- protocol configuration
-
protocol
Description copied from interface:ClientProtocolProvider
Create a protocol client instance.- Specified by:
protocol
in interfaceClientProtocolProvider<GrpcClient,
GrpcClientProtocolConfig> - Parameters:
client
- webclient to useconfig
- configuration of the protocol- Returns:
- a new protocol client
-