141142143144145146147148149150
*/ synchronized public void addAppender(Appender newAppender) { if(aai == null) { aai = new AppenderAttachableImpl(); } aai.addAppender(newAppender); repository.fireAddAppenderEvent(this, newAppender); }
575859606162636465
public AsyncAppender() { // Note: The dispatcher code assumes that the aai is set once and // for all. aai = new AppenderAttachableImpl(); dispatcher = new Dispatcher(bf, this); dispatcher.start(); }
46474849505152
* Nested appenders. */ private final AppenderAttachableImpl appenders; public RewriteAppender() { appenders = new AppenderAttachableImpl(); }
676869707172737475
public AsyncAppender() { super(true); // Note: The dispatcher code assumes that the aai is set once and // for all. aai = new AppenderAttachableImpl(); dispatcher = new Dispatcher(bf, this); dispatcher.start(); }
161162163164165166167168169170171
public void addAppender(Appender newAppender) { // BEGIN - WRITE LOCK lock.getWriteLock(); if (aai == null) { aai = new AppenderAttachableImpl(); } aai.addAppender(newAppender); lock.releaseWriteLock(); // END - WRITE LOCK
157158159160161162163164165166
102103104105106107108109110111112
/** * Create new instance. */ public AsyncAppender() { appenders = new AppenderAttachableImpl(); // // only set for compatibility aai = appenders;
138139140141142143144145146147
545556575859606162
boolean interruptedWarningMessage = false; public AsyncAppender() { // Note: The dispatcher code assumes that the aai is set once and // for all. aai = new AppenderAttachableImpl(); dispatcher = new Dispatcher(bf, this); dispatcher.start(); }
101102103104105106107108109110111