public final ChannelFuture writeReset(int id, int streamId, Http2Error error) {

        if (closed) {
            return newClosedSessionFuture();
        }

        return doWriteReset(id, streamId, error);
    }
public final ChannelFuture writeReset ( int id , int streamId , Http2Error error ) { if ( closed ) { return newClosedSessionFuture ( ) ; } return doWriteReset ( id , streamId , error ) ; }
Resets the specified stream. If the session protocol does not support multiplexing or the connection
is in unrecoverable state, the connection will be closed. For example, in an HTTP/1 connection, this
will lead the connection to be closed immediately or after the previous requests that are not reset.