@UnstableApi public final class Http2Codec extends ChannelDuplexHandler
Http2FrameCodec and Http2MultiplexCodec to the pipeline before
removing itself.ChannelHandler.Sharable| Constructor and Description |
|---|
Http2Codec(boolean server,
ChannelHandler streamHandler)
Construct a new handler whose child channels run in the same event loop as this handler.
|
Http2Codec(boolean server,
ChannelHandler streamHandler,
EventLoopGroup streamGroup)
Construct a new handler whose child channels run in a different event loop.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handlerAdded(ChannelHandlerContext ctx)
Do nothing by default, sub-classes may override this method.
|
bind, close, connect, deregister, disconnect, flush, read, writechannelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerRemovedpublic Http2Codec(boolean server,
ChannelHandler streamHandler)
server - true this is a serverstreamHandler - the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable.public Http2Codec(boolean server,
ChannelHandler streamHandler,
EventLoopGroup streamGroup)
server - true this is a serverstreamHandler - the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable.streamGroup - event loop for registering child channelspublic void handlerAdded(ChannelHandlerContext ctx) throws Exception
ChannelHandlerAdapterhandlerAdded in interface ChannelHandlerhandlerAdded in class ChannelHandlerAdapterExceptionCopyright © 2008–2016 The Netty Project. All rights reserved.