Package io.grpc.netty
Class ProtocolNegotiators.PlaintextProtocolNegotiatorClientFactory
java.lang.Object
io.grpc.netty.ProtocolNegotiators.PlaintextProtocolNegotiatorClientFactory
- All Implemented Interfaces:
ProtocolNegotiator.ClientFactory
- Enclosing class:
ProtocolNegotiators
static final class ProtocolNegotiators.PlaintextProtocolNegotiatorClientFactory
extends Object
implements ProtocolNegotiator.ClientFactory
-
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.
-
Constructor Details
-
PlaintextProtocolNegotiatorClientFactory
PlaintextProtocolNegotiatorClientFactory()
-
-
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
-