@Internal public abstract class GrpcHttp2ConnectionHandler extends Http2ConnectionHandler
Http2ConnectionHandler
.ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
protected ChannelPromise |
channelUnused |
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
Constructor and Description |
---|
GrpcHttp2ConnectionHandler(ChannelPromise channelUnused,
Http2ConnectionDecoder decoder,
Http2ConnectionEncoder encoder,
Http2Settings initialSettings) |
Modifier and Type | Method and Description |
---|---|
io.grpc.Attributes |
getEagAttributes()
Get the attributes of the EquivalentAddressGroup used to create this transport.
|
void |
handleProtocolNegotiationCompleted(io.grpc.Attributes attrs)
Deprecated.
Use the two argument method instead.
|
void |
handleProtocolNegotiationCompleted(io.grpc.Attributes attrs,
io.grpc.internal.Channelz.Security securityInfo)
Triggered on protocol negotiation completion.
|
void |
notifyUnused()
Calling this method indicates that the channel will no longer be used.
|
bind, channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, close, closeStream, closeStreamLocal, closeStreamRemote, connect, connection, decode, decoder, deregister, disconnect, encoder, exceptionCaught, flush, frameWriter, goAway, gracefulShutdownTimeoutMillis, gracefulShutdownTimeoutMillis, handlerAdded, handlerRemoved0, handleServerHeaderDecodeSizeError, isGracefulShutdownComplete, onConnectionError, onError, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, resetStream, write
actualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelRegistered, channelUnregistered
ensureNotSharable, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerRemoved
@Nullable protected final ChannelPromise channelUnused
public GrpcHttp2ConnectionHandler(ChannelPromise channelUnused, Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings)
@Deprecated public void handleProtocolNegotiationCompleted(io.grpc.Attributes attrs)
handleProtocolNegotiationCompleted(Attributes, Channelz.Security)
but with no Channelz.Security
.public void handleProtocolNegotiationCompleted(io.grpc.Attributes attrs, io.grpc.internal.Channelz.Security securityInfo)
It must me called after negotiation is completed but before given handler is added to the channel.
attrs
- arbitrary attributes passed after protocol negotiation (eg. SSLSession).securityInfo
- informs channelz about the security protocol.public void notifyUnused()
Http2ConnectionHandler.close(io.netty.channel.ChannelHandlerContext, io.netty.channel.ChannelPromise)
on the channel, but leaving the channel alive. This is
useful if the channel will soon be deregistered from the executor and used in a non-Netty
context.public io.grpc.Attributes getEagAttributes()