public void close(ErrorCode rstStatusCode, @Nullable IOException errorException)
      throws IOException {
    if (!closeInternal(rstStatusCode, errorException)) {
      return; // Already closed.
    }
    connection.writeSynReset(id, rstStatusCode);
  }
public void close ( ErrorCode rstStatusCode , @ Nullable IOException errorException ) throws IOException { if ( ! closeInternal ( rstStatusCode , errorException ) ) { return ; } connection . writeSynReset ( id , rstStatusCode ) ; }
Abnormally terminate this stream. This blocks until the {@code RST_STREAM} frame has been
transmitted.