class Http2ConnectionHandler extends ByteToMessageDecoder implements Http2LifecycleManager, ChannelOutboundHandler {

  @Override
  public void channelInactive(final ChannelHandlerContext ctx) throws Exception {
    // Call super class first, as this may result in decode being called.
    super.channelInactive(ctx);
    if (byteDecoder != null) {
      byteDecoder.channelInactive(ctx);
      byteDecoder = null;
    }
  }

  protected  Http2ConnectionHandler(
      final Http2ConnectionDecoder decoder,
      final Http2ConnectionEncoder encoder,
      final Http2Settings initialSettings);
  protected  Http2ConnectionHandler(
      final Http2ConnectionDecoder decoder,
      final Http2ConnectionEncoder encoder,
      final Http2Settings initialSettings,
      final boolean decoupleCloseAndGoAway);

}