Interface ClientProtocolProvider<T,C>
- Type Parameters:
T- type of protocolC- type of the protocol config
- All Known Subinterfaces:
HttpClientSpiProvider<T>
- All Known Implementing Classes:
GrpcProtocolProvider, Http1ClientSpiProvider, Http2ClientSpiProvider, JsonRpcProtocolProvider, WsProtocolProvider
public interface ClientProtocolProvider<T,C>
Provider interface for client protocols.
HTTP protocols need to also implement
HttpClientSpiProvider to
be available through the unified HTTP client API.-
Method Summary
Modifier and TypeMethodDescriptionType of the config object.Default configuration of this protocol.Create a protocol client instance.Protocol id for ALPN (protocol negotiation when using TLS).
-
Method Details
-
protocolId
String protocolId()Protocol id for ALPN (protocol negotiation when using TLS).- Returns:
- protocol id
-
configType
-
defaultConfig
-
protocol
-