public class Http2ServerInitializer extends ChannelInitializer<SocketChannel>
ChannelHandler.Sharable| 构造器和说明 |
|---|
Http2ServerInitializer(SslContext sslCtx) |
Http2ServerInitializer(SslContext sslCtx,
int maxHttpContentLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
initChannel(SocketChannel ch)
This method will be called once the
Channel was registered. |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, isSharablepublic Http2ServerInitializer(SslContext sslCtx)
public Http2ServerInitializer(SslContext sslCtx, int maxHttpContentLength)
public void initChannel(SocketChannel ch)
ChannelInitializerChannel was registered. After the method returns this instance
will be removed from the ChannelPipeline of the Channel.initChannel 在类中 ChannelInitializer<SocketChannel>ch - the Channel which was registered.