Uses of Interface
io.grpc.netty.ProtocolNegotiator
-
Packages that use ProtocolNegotiator Package Description io.grpc.netty The main transport implementation based on Netty, for both the client and the server. -
-
Uses of ProtocolNegotiator in io.grpc.netty
Subinterfaces of ProtocolNegotiator in io.grpc.netty Modifier and Type Interface Description static interface
InternalProtocolNegotiator.ProtocolNegotiator
Classes in io.grpc.netty that implement ProtocolNegotiator Modifier and Type Class Description (package private) static class
InternalProtocolNegotiator.ProtocolNegotiatorAdapter
(package private) static class
ProtocolNegotiators.ClientTlsProtocolNegotiator
(package private) static class
ProtocolNegotiators.PlaintextProtocolNegotiator
A negotiator that only does plain text.(package private) static class
ProtocolNegotiators.PlaintextUpgradeProtocolNegotiator
Fields in io.grpc.netty declared as ProtocolNegotiator Modifier and Type Field Description private ProtocolNegotiator
InternalProtocolNegotiator.ProtocolNegotiatorAdapter. negotiator
private ProtocolNegotiator
NettyClientTransport. negotiator
private ProtocolNegotiator
NettyChannelBuilder.NettyTransportFactory. protocolNegotiator
private ProtocolNegotiator
NettyServer. protocolNegotiator
private ProtocolNegotiator
NettyServerTransport. protocolNegotiator
private ProtocolNegotiator
ProtocolNegotiators.FixedProtocolNegotiatorServerFactory. protocolNegotiator
Methods in io.grpc.netty that return ProtocolNegotiator Modifier and Type Method Description (package private) static ProtocolNegotiator
NettyChannelBuilder. createProtocolNegotiatorByType(NegotiationType negotiationType, io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool)
static ProtocolNegotiator
ProtocolNegotiators. httpProxy(java.net.SocketAddress proxyAddress, java.lang.String proxyUsername, java.lang.String proxyPassword, ProtocolNegotiator negotiator)
Returns aProtocolNegotiator
that does HTTP CONNECT proxy negotiation.ProtocolNegotiator
NettyChannelBuilder.DefaultProtocolNegotiator. newNegotiator()
ProtocolNegotiator
ProtocolNegotiator.ClientFactory. newNegotiator()
Creates a new negotiator.ProtocolNegotiator
ProtocolNegotiator.ServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)
Creates a new negotiator.ProtocolNegotiator
ProtocolNegotiators.FixedProtocolNegotiatorServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)
ProtocolNegotiator
ProtocolNegotiators.PlaintextProtocolNegotiatorClientFactory. newNegotiator()
ProtocolNegotiator
ProtocolNegotiators.PlaintextProtocolNegotiatorServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)
ProtocolNegotiator
ProtocolNegotiators.PlaintextUpgradeProtocolNegotiatorClientFactory. newNegotiator()
ProtocolNegotiator
ProtocolNegotiators.TlsProtocolNegotiatorClientFactory. newNegotiator()
ProtocolNegotiator
ProtocolNegotiators.TlsProtocolNegotiatorServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)
static ProtocolNegotiator
ProtocolNegotiators. plaintext()
Returns aChannelHandler
that ensures that thehandler
is added to the pipeline writes to theChannel
may happen immediately, even before it is active.static ProtocolNegotiator
ProtocolNegotiators. plaintextUpgrade()
Returns aProtocolNegotiator
used for upgrading to HTTP/2 from HTTP/1.x.static ProtocolNegotiator
ProtocolNegotiators. serverPlaintext()
Create a server plaintext handler for gRPC.static ProtocolNegotiator
ProtocolNegotiators. serverTls(io.netty.handler.ssl.SslContext sslContext)
Create a server TLS handler for HTTP/2 capable of using ALPN/NPN.static ProtocolNegotiator
ProtocolNegotiators. serverTls(io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool)
Create a server TLS handler for HTTP/2 capable of using ALPN/NPN.static ProtocolNegotiator
ProtocolNegotiators. tls(io.netty.handler.ssl.SslContext sslContext)
Returns aProtocolNegotiator
that ensures the pipeline is set up so that TLS will be negotiated, thehandler
is added and writes to theChannel
may happen immediately, even before the TLS Handshake is complete.static ProtocolNegotiator
ProtocolNegotiators. tls(io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool, java.util.Optional<java.lang.Runnable> handshakeCompleteRunnable)
Returns aProtocolNegotiator
that ensures the pipeline is set up so that TLS will be negotiated, thehandler
is added and writes to theChannel
may happen immediately, even before the TLS Handshake is complete.Methods in io.grpc.netty with parameters of type ProtocolNegotiator Modifier and Type Method Description static ProtocolNegotiator.ServerFactory
ProtocolNegotiators. fixedServerFactory(ProtocolNegotiator negotiator)
static ProtocolNegotiator
ProtocolNegotiators. httpProxy(java.net.SocketAddress proxyAddress, java.lang.String proxyUsername, java.lang.String proxyPassword, ProtocolNegotiator negotiator)
Returns aProtocolNegotiator
that does HTTP CONNECT proxy negotiation.NettyServerBuilder
NettyServerBuilder. protocolNegotiator(ProtocolNegotiator protocolNegotiator)
Sets theProtocolNegotiator
to be used.Constructors in io.grpc.netty with parameters of type ProtocolNegotiator Constructor Description FixedProtocolNegotiatorServerFactory(ProtocolNegotiator protocolNegotiator)
NettyClientTransport(java.net.SocketAddress address, io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory, java.util.Map<io.netty.channel.ChannelOption<?>,?> channelOptions, io.netty.channel.EventLoopGroup group, ProtocolNegotiator negotiator, boolean autoFlowControl, int flowControlWindow, int maxMessageSize, int maxHeaderListSize, long keepAliveTimeNanos, long keepAliveTimeoutNanos, boolean keepAliveWithoutCalls, java.lang.String authority, java.lang.String userAgent, java.lang.Runnable tooManyPingsRunnable, TransportTracer transportTracer, Attributes eagAttributes, NettyChannelBuilder.LocalSocketPicker localSocketPicker, ChannelLogger channelLogger, boolean useGetForSafeMethods, com.google.common.base.Ticker ticker)
NettyServer(java.util.List<? extends java.net.SocketAddress> addresses, io.netty.channel.ChannelFactory<? extends io.netty.channel.ServerChannel> channelFactory, java.util.Map<io.netty.channel.ChannelOption<?>,?> channelOptions, java.util.Map<io.netty.channel.ChannelOption<?>,?> childChannelOptions, ObjectPool<? extends io.netty.channel.EventLoopGroup> bossGroupPool, ObjectPool<? extends io.netty.channel.EventLoopGroup> workerGroupPool, boolean forceHeapBuffer, ProtocolNegotiator protocolNegotiator, java.util.List<? extends ServerStreamTracer.Factory> streamTracerFactories, TransportTracer.Factory transportTracerFactory, int maxStreamsPerConnection, boolean autoFlowControl, int flowControlWindow, int maxMessageSize, int maxHeaderListSize, long keepAliveTimeInNanos, long keepAliveTimeoutInNanos, long maxConnectionIdleInNanos, long maxConnectionAgeInNanos, long maxConnectionAgeGraceInNanos, boolean permitKeepAliveWithoutCalls, long permitKeepAliveTimeInNanos, int maxRstCount, long maxRstPeriodNanos, Attributes eagAttributes, InternalChannelz channelz)
NettyServerTransport(io.netty.channel.Channel channel, io.netty.channel.ChannelPromise channelUnused, ProtocolNegotiator protocolNegotiator, java.util.List<? extends ServerStreamTracer.Factory> streamTracerFactories, TransportTracer transportTracer, int maxStreams, boolean autoFlowControl, int flowControlWindow, int maxMessageSize, int maxHeaderListSize, long keepAliveTimeInNanos, long keepAliveTimeoutInNanos, long maxConnectionIdleInNanos, long maxConnectionAgeInNanos, long maxConnectionAgeGraceInNanos, boolean permitKeepAliveWithoutCalls, long permitKeepAliveTimeInNanos, int maxRstCount, long maxRstPeriodNanos, Attributes eagAttributes)
NettyTransportFactory(ProtocolNegotiator protocolNegotiator, io.netty.channel.ChannelFactory<? extends io.netty.channel.Channel> channelFactory, java.util.Map<io.netty.channel.ChannelOption<?>,?> channelOptions, ObjectPool<? extends io.netty.channel.EventLoopGroup> groupPool, boolean autoFlowControl, int flowControlWindow, int maxMessageSize, int maxHeaderListSize, long keepAliveTimeNanos, long keepAliveTimeoutNanos, boolean keepAliveWithoutCalls, TransportTracer.Factory transportTracerFactory, NettyChannelBuilder.LocalSocketPicker localSocketPicker, boolean useGetForSafeMethods, java.lang.Class<? extends java.net.SocketAddress> transportSocketType)
ProtocolNegotiatorAdapter(ProtocolNegotiator negotiator)
-