public AsyncAppender(int logBufferQueueSize) {
// Note: The dispatcher code assumes that the aai is set once and
// for all.
bf = new BoundedFIFO(Math.max(DEFAULT_BUFFER_SIZE, logBufferQueueSize));
aai = new AppenderAttachableImpl();
dispatcher = new Dispatcher(bf, this);
dispatcher.start();
}