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 interfaceInternalProtocolNegotiator.ProtocolNegotiatorClasses in io.grpc.netty that implement ProtocolNegotiator Modifier and Type Class Description (package private) static classInternalProtocolNegotiator.ProtocolNegotiatorAdapter(package private) static classProtocolNegotiators.ClientTlsProtocolNegotiator(package private) static classProtocolNegotiators.PlaintextProtocolNegotiatorA negotiator that only does plain text.(package private) static classProtocolNegotiators.PlaintextUpgradeProtocolNegotiatorFields in io.grpc.netty declared as ProtocolNegotiator Modifier and Type Field Description private ProtocolNegotiatorInternalProtocolNegotiator.ProtocolNegotiatorAdapter. negotiatorprivate ProtocolNegotiatorNettyClientTransport. negotiatorprivate ProtocolNegotiatorNettyChannelBuilder.NettyTransportFactory. protocolNegotiatorprivate ProtocolNegotiatorNettyServer. protocolNegotiatorprivate ProtocolNegotiatorNettyServerTransport. protocolNegotiatorprivate ProtocolNegotiatorProtocolNegotiators.FixedProtocolNegotiatorServerFactory. protocolNegotiatorMethods in io.grpc.netty that return ProtocolNegotiator Modifier and Type Method Description (package private) static ProtocolNegotiatorNettyChannelBuilder. createProtocolNegotiatorByType(NegotiationType negotiationType, io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool)static ProtocolNegotiatorProtocolNegotiators. httpProxy(java.net.SocketAddress proxyAddress, java.lang.String proxyUsername, java.lang.String proxyPassword, ProtocolNegotiator negotiator)Returns aProtocolNegotiatorthat does HTTP CONNECT proxy negotiation.ProtocolNegotiatorNettyChannelBuilder.DefaultProtocolNegotiator. newNegotiator()ProtocolNegotiatorProtocolNegotiator.ClientFactory. newNegotiator()Creates a new negotiator.ProtocolNegotiatorProtocolNegotiator.ServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)Creates a new negotiator.ProtocolNegotiatorProtocolNegotiators.FixedProtocolNegotiatorServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)ProtocolNegotiatorProtocolNegotiators.PlaintextProtocolNegotiatorClientFactory. newNegotiator()ProtocolNegotiatorProtocolNegotiators.PlaintextProtocolNegotiatorServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)ProtocolNegotiatorProtocolNegotiators.PlaintextUpgradeProtocolNegotiatorClientFactory. newNegotiator()ProtocolNegotiatorProtocolNegotiators.TlsProtocolNegotiatorClientFactory. newNegotiator()ProtocolNegotiatorProtocolNegotiators.TlsProtocolNegotiatorServerFactory. newNegotiator(ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool)static ProtocolNegotiatorProtocolNegotiators. plaintext()Returns aChannelHandlerthat ensures that thehandleris added to the pipeline writes to theChannelmay happen immediately, even before it is active.static ProtocolNegotiatorProtocolNegotiators. plaintextUpgrade()Returns aProtocolNegotiatorused for upgrading to HTTP/2 from HTTP/1.x.static ProtocolNegotiatorProtocolNegotiators. serverPlaintext()Create a server plaintext handler for gRPC.static ProtocolNegotiatorProtocolNegotiators. serverTls(io.netty.handler.ssl.SslContext sslContext)Create a server TLS handler for HTTP/2 capable of using ALPN/NPN.static ProtocolNegotiatorProtocolNegotiators. 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 ProtocolNegotiatorProtocolNegotiators. tls(io.netty.handler.ssl.SslContext sslContext)Returns aProtocolNegotiatorthat ensures the pipeline is set up so that TLS will be negotiated, thehandleris added and writes to theChannelmay happen immediately, even before the TLS Handshake is complete.static ProtocolNegotiatorProtocolNegotiators. tls(io.netty.handler.ssl.SslContext sslContext, ObjectPool<? extends java.util.concurrent.Executor> executorPool, java.util.Optional<java.lang.Runnable> handshakeCompleteRunnable)Returns aProtocolNegotiatorthat ensures the pipeline is set up so that TLS will be negotiated, thehandleris added and writes to theChannelmay 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.ServerFactoryProtocolNegotiators. fixedServerFactory(ProtocolNegotiator negotiator)static ProtocolNegotiatorProtocolNegotiators. httpProxy(java.net.SocketAddress proxyAddress, java.lang.String proxyUsername, java.lang.String proxyPassword, ProtocolNegotiator negotiator)Returns aProtocolNegotiatorthat does HTTP CONNECT proxy negotiation.NettyServerBuilderNettyServerBuilder. protocolNegotiator(ProtocolNegotiator protocolNegotiator)Sets theProtocolNegotiatorto 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)
-