public class Http2SettingsHandler extends SimpleChannelInboundHandler<Http2Settings>
Http2Settings
object and notifies a ChannelPromise
ChannelHandler.Sharable
Constructor and Description |
---|
Http2SettingsHandler(ChannelPromise promise)
Create new instance
|
Modifier and Type | Method and Description |
---|---|
void |
awaitSettings(long timeout,
TimeUnit unit)
Wait for this handler to be added after the upgrade to HTTP/2, and for initial preface
handshake to complete.
|
protected void |
channelRead0(ChannelHandlerContext ctx,
Http2Settings msg)
Please keep in mind that this method will be renamed to
messageReceived(ChannelHandlerContext, I) in 5.0. |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
public Http2SettingsHandler(ChannelPromise promise)
promise
- Promise object used to notify when first settings are receivedpublic void awaitSettings(long timeout, TimeUnit unit) throws Exception
protected void channelRead0(ChannelHandlerContext ctx, Http2Settings msg) throws Exception
SimpleChannelInboundHandler
messageReceived(ChannelHandlerContext, I)
in 5.0.
Is called for each message of type I
.channelRead0
in class SimpleChannelInboundHandler<Http2Settings>
ctx
- the ChannelHandlerContext
which this SimpleChannelInboundHandler
belongs tomsg
- the message to handleException
- is thrown if an error occurredCopyright © 2008–2019 The Netty Project. All rights reserved.