code: public void flush() {
          logger.info(String.format("(%s) Flush, buffer size: %d", detectorImpl.getName(), queue.size()));
          while(queue.size()>0)
              detectorImpl.fireEvent(queue.poll());
      }
docs: Flushes the buffer content.