code: private synchronized void pushEvent(Event event, boolean flushBuffer)
    {
      eventBuffer.add(event);
  
      if (flushBuffer || eventBuffer.size() >= maxEntries)
      {
        this.flushEventBuffer();
      }
    }
docs: /*
  Pushes an event onto the event buffer and flushes if specified or if
  the buffer has reached maximum capacity.