public void flush() {
        if (batchedMode.get()) {
            flushBatch(stealBatch());
        }

        for (LogHandler h : handlers) {
            if (log.isLoggable(Level.FINE)) {
                log.log(Level.FINE, "Flushing " + h.toString());
            }
            h.flush();
        }
    }
Set the batched mode.  Note that this should only be set
at initialization time because it radically changes the
behavior of the dispatcher.  When in batched mode, the
dispatcher will not enqueue single LogMessage instances
but lists of same.
logserver/src/main/java/com/yahoo/logserver/LogDispatcher.java