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 java.lang.Object implements ProtocolNegotiator.ClientFactory
-
-
Field Summary
Fields Modifier and Type Field Description private io.netty.handler.ssl.SslContextsslContext
-
Constructor Summary
Constructors Constructor Description TlsProtocolNegotiatorClientFactory(io.netty.handler.ssl.SslContext sslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultPort()Returns the implicit port to use if no port was specified explicitly by the user.ProtocolNegotiatornewNegotiator()Creates a new negotiator.
-
-
-
Method Detail
-
newNegotiator
public ProtocolNegotiator newNegotiator()
Description copied from interface:ProtocolNegotiator.ClientFactoryCreates a new negotiator.- Specified by:
newNegotiatorin interfaceProtocolNegotiator.ClientFactory
-
getDefaultPort
public int getDefaultPort()
Description copied from interface:ProtocolNegotiator.ClientFactoryReturns the implicit port to use if no port was specified explicitly by the user.- Specified by:
getDefaultPortin interfaceProtocolNegotiator.ClientFactory
-
-