code: public void setDiscardLifecycleEvents(final boolean discard) {
          setDiscardEventsByType(EventType.RESET_STREAM, discard);
          setDiscardEventsByType(EventType.CLOSE_STREAM, discard);
      }
docs: Sets whether to discard {@linkplain EventType#RESET_STREAM reset-stream}
  and {@linkplain EventType#CLOSE_STREAM close-stream} events. By default
  lifecycle events are not discarded.
  <p>
  This is a convenience method for changing the set of discarded events.
  <p>
  The state must not be changed while processing a stream.
  
  @param discard if true the lifecycle events will be discarded, otherwise
  passed on.