@UnstableApi
public final class Http2Codec
extends io.netty.channel.ChannelDuplexHandler
Http2FrameCodec and Http2MultiplexCodec to the pipeline before
removing itself.| Constructor and Description |
|---|
Http2Codec(boolean server,
io.netty.channel.ChannelHandler streamHandler)
Construct a new handler whose child channels run in the same event loop as this handler.
|
Http2Codec(boolean server,
io.netty.channel.ChannelHandler streamHandler,
Http2Settings initialSettings)
Construct a new handler whose child channels run in the same event loop as this handler.
|
Http2Codec(boolean server,
Http2StreamChannelBootstrap bootstrap,
Http2FrameLogger frameLogger)
Construct a new handler whose child channels run in a different event loop.
|
Http2Codec(boolean server,
Http2StreamChannelBootstrap bootstrap,
Http2FrameLogger frameLogger,
Http2Settings initialSettings)
Construct a new handler whose child channels run in a different event loop.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
bind, close, connect, deregister, disconnect, flush, read, writechannelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic Http2Codec(boolean server,
io.netty.channel.ChannelHandler streamHandler)
server - true this is a serverstreamHandler - the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable. null if the event loop from the parent channel should be used.public Http2Codec(boolean server,
io.netty.channel.ChannelHandler streamHandler,
Http2Settings initialSettings)
server - true this is a serverstreamHandler - the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable. null if the event loop from the parent channel should be used.initialSettings - non default initial settings to send to peerpublic Http2Codec(boolean server,
Http2StreamChannelBootstrap bootstrap,
Http2FrameLogger frameLogger)
server - true this is a serverbootstrap - bootstrap used to instantiate child channels for remotely-created streams.public Http2Codec(boolean server,
Http2StreamChannelBootstrap bootstrap,
Http2FrameLogger frameLogger,
Http2Settings initialSettings)
server - true this is a serverbootstrap - bootstrap used to instantiate child channels for remotely-created streams.initialSettings - non default initial settings to send to peerCopyright © 2008–2017 The Netty Project. All rights reserved.