public class Http2SettingsHandler extends SimpleChannelInboundHandler<Http2Settings>
Http2Settings object and notifies a ChannelPromiseChannelHandler.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, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic 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
SimpleChannelInboundHandlermessageReceived(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–2017 The Netty Project. All rights reserved.