Package io.grpc.netty
Class ProtocolNegotiators.TlsProtocolNegotiatorClientFactory
java.lang.Object
io.grpc.netty.ProtocolNegotiators.TlsProtocolNegotiatorClientFactory
- All Implemented Interfaces:
ProtocolNegotiator.ClientFactory
- Enclosing class:
ProtocolNegotiators
static final class ProtocolNegotiators.TlsProtocolNegotiatorClientFactory
extends Object
implements ProtocolNegotiator.ClientFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTlsProtocolNegotiatorClientFactory
(io.netty.handler.ssl.SslContext sslContext) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the implicit port to use if no port was specified explicitly by the user.Creates a new negotiator.
-
Field Details
-
sslContext
private final io.netty.handler.ssl.SslContext sslContext
-
-
Constructor Details
-
TlsProtocolNegotiatorClientFactory
public TlsProtocolNegotiatorClientFactory(io.netty.handler.ssl.SslContext sslContext)
-
-
Method Details
-
newNegotiator
Description copied from interface:ProtocolNegotiator.ClientFactory
Creates a new negotiator.- Specified by:
newNegotiator
in interfaceProtocolNegotiator.ClientFactory
-
getDefaultPort
public int getDefaultPort()Description copied from interface:ProtocolNegotiator.ClientFactory
Returns the implicit port to use if no port was specified explicitly by the user.- Specified by:
getDefaultPort
in interfaceProtocolNegotiator.ClientFactory
-