public final class InternalProtocolNegotiators extends Object
ProtocolNegotiators
.Modifier and Type | Class and Description |
---|---|
static class |
InternalProtocolNegotiators.AbstractBufferingHandler
Buffers all writes until either
ProtocolNegotiators.AbstractBufferingHandler.writeBufferedAndRemove(ChannelHandlerContext) or
ProtocolNegotiators.AbstractBufferingHandler.fail(ChannelHandlerContext, Throwable) is called. |
static class |
InternalProtocolNegotiators.ProtocolNegotiationHandler |
Modifier and Type | Method and Description |
---|---|
static io.netty.channel.ChannelHandler |
clientTlsHandler(io.netty.channel.ChannelHandler next,
io.netty.handler.ssl.SslContext sslContext,
String authority) |
static io.netty.channel.ChannelHandler |
grpcNegotiationHandler(GrpcHttp2ConnectionHandler next)
Internal version of
ProtocolNegotiators.GrpcNegotiationHandler . |
static io.grpc.ChannelLogger |
negotiationLogger(io.netty.channel.ChannelHandlerContext ctx)
Returns the channel logger for the given channel context, or a Noop Logger if absent.
|
static InternalProtocolNegotiator.ProtocolNegotiator |
tls(io.netty.handler.ssl.SslContext sslContext)
Returns a
ProtocolNegotiator that ensures the pipeline is set up so that TLS will
be negotiated, the handler is added and writes to the Channel
may happen immediately, even before the TLS Handshake is complete. |
static io.netty.channel.ChannelHandler |
waitUntilActiveHandler(io.netty.channel.ChannelHandler next)
Internal version of
ProtocolNegotiators.WaitUntilActiveHandler . |
public static io.grpc.ChannelLogger negotiationLogger(io.netty.channel.ChannelHandlerContext ctx)
public static InternalProtocolNegotiator.ProtocolNegotiator tls(io.netty.handler.ssl.SslContext sslContext)
ProtocolNegotiator
that ensures the pipeline is set up so that TLS will
be negotiated, the handler
is added and writes to the Channel
may happen immediately, even before the TLS Handshake is complete.public static io.netty.channel.ChannelHandler waitUntilActiveHandler(io.netty.channel.ChannelHandler next)
ProtocolNegotiators.WaitUntilActiveHandler
.public static io.netty.channel.ChannelHandler grpcNegotiationHandler(GrpcHttp2ConnectionHandler next)
ProtocolNegotiators.GrpcNegotiationHandler
.public static io.netty.channel.ChannelHandler clientTlsHandler(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, String authority)
Copyright © 2019. All rights reserved.