code: void triggerBasicEvent(Event.EventType type,
                           String message,
                           boolean flushBuffer)
    {
      Event triggeredEvent = new BasicEvent(type, message);
  
      pushEvent(triggeredEvent, flushBuffer);
    }
docs: Triggers a new BaseEvent of type @type with message @message and flushes
  the eventBuffer if full or @flushBuffer is true
  
  @param type        event type
  @param message     trigger message
  @param flushBuffer true if push the event to flush buffer