docs: private void flushEventBuffer()
    {
      ArrayList<Event> eventBufferCopy;
  
      logger.debug("Flushing eventBuffer");
  
      // Copy event buffer because this may be long running
      synchronized (this)
      {
        eventBufferCopy = new ArrayList<>(eventBuffer);
        eventBuffer.clear();
      }
  
      for (Event event : eventBufferCopy)
      {
        event.flush();
      }
    }