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 Object
implements ProtocolNegotiator.ClientFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
negotiationType
-
sslContext
private io.netty.handler.ssl.SslContext sslContext
-
-
Constructor Details
-
DefaultProtocolNegotiator
private DefaultProtocolNegotiator()
-
-
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
-