public final class Http2ClientFrameInitializer extends ChannelInitializer<Channel>
Http2FrameCodec and Http2MultiplexHandler.ChannelHandler.Sharable| 构造器和说明 |
|---|
Http2ClientFrameInitializer(SslContext sslCtx) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
initChannel(Channel ch)
This method will be called once the
Channel was registered. |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, isSharablepublic Http2ClientFrameInitializer(SslContext sslCtx)
protected void initChannel(Channel ch) throws java.lang.Exception
ChannelInitializerChannel was registered. After the method returns this instance
will be removed from the ChannelPipeline of the Channel.initChannel 在类中 ChannelInitializer<Channel>ch - the Channel which was registered.java.lang.Exception - is thrown if an error occurs. In that case it will be handled by
ChannelInitializer.exceptionCaught(ChannelHandlerContext, Throwable) which will by default close
the Channel.