@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, write
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerRemoved
public 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
ChannelHandlerAdapter
handlerAdded
in interface ChannelHandler
handlerAdded
in class ChannelHandlerAdapter
Exception
Copyright © 2008–2016 The Netty Project. All rights reserved.