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. |
Modifier and Type | Method and Description |
---|---|
static io.netty.channel.ChannelHandler |
grpcNegotiationHandler(GrpcHttp2ConnectionHandler next)
Internal version of
ProtocolNegotiators.GrpcNegotiationHandler . |
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 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
.Copyright © 2019. All rights reserved.