public class Http2SettingsHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http2.Http2Settings>
Http2Settings object and notifies a ChannelPromise| Constructor and Description |
|---|
Http2SettingsHandler(io.netty.channel.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 |
messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings msg) |
acceptInboundMessage, channelReadbind, channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggered, writepublic Http2SettingsHandler(io.netty.channel.ChannelPromise promise)
promise - Promise object used to notify when first settings are receivedpublic void awaitSettings(long timeout,
TimeUnit unit)
throws Exception
protected void messageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings msg)
throws Exception
messageReceived in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http2.Http2Settings>ExceptionCopyright © 2008–2015 The Netty Project. All rights reserved.