class DefaultHttp2ConnectionEncoder implements Http2ConnectionEncoder {

    @Override
    public ChannelFuture writeRstStream(ChannelHandlerContext ctx, int streamId, long errorCode,
            ChannelPromise promise) {
        // Delegate to the lifecycle manager for proper updating of connection state.
        return lifecycleManager.resetStream(ctx, streamId, errorCode, promise);
    }

    public  DefaultHttp2ConnectionEncoder(Http2Connection connection, Http2FrameWriter frameWriter);

}