Package io.grpc.netty
Class NettyChannelBuilder.DefaultProtocolNegotiator
- java.lang.Object
-
- io.grpc.netty.NettyChannelBuilder.DefaultProtocolNegotiator
-
- All Implemented Interfaces:
ProtocolNegotiator.ClientFactory
- Enclosing class:
- NettyChannelBuilder
private final class NettyChannelBuilder.DefaultProtocolNegotiator extends java.lang.Object implements ProtocolNegotiator.ClientFactory
-
-
Field Summary
Fields Modifier and Type Field Description private NegotiationTypenegotiationTypeprivate io.netty.handler.ssl.SslContextsslContext
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultProtocolNegotiator()
-
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.
-
-
-
Field Detail
-
negotiationType
private NegotiationType negotiationType
-
sslContext
private io.netty.handler.ssl.SslContext sslContext
-
-
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
-
-