Package org.apache.log4j
Class Dispatcher
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.log4j.Dispatcher
-
- All Implemented Interfaces:
java.lang.Runnable
class Dispatcher extends java.lang.ThreadDeprecated.Since 1.3.Obsolete AsyncAppender dispatcher provided for compatibility only.
-
-
Field Summary
Fields Modifier and Type Field Description private AppenderAttachableImplaaiDeprecated.private BoundedFIFObfDeprecated.(package private) AsyncAppendercontainerDeprecated.private booleaninterruptedDeprecated.
-
Constructor Summary
Constructors Constructor Description Dispatcher(BoundedFIFO bf, AsyncAppender container)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) voidclose()Deprecated.voidrun()Deprecated.The dispatching strategy is to wait until there are events in the buffer to process.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
bf
private BoundedFIFO bf
Deprecated.
-
aai
private AppenderAttachableImpl aai
Deprecated.
-
interrupted
private boolean interrupted
Deprecated.
-
container
AsyncAppender container
Deprecated.
-
-
Constructor Detail
-
Dispatcher
Dispatcher(BoundedFIFO bf, AsyncAppender container)
Deprecated.- Parameters:
bf-container-
-
-
Method Detail
-
close
void close()
Deprecated.
-
run
public void run()
Deprecated.The dispatching strategy is to wait until there are events in the buffer to process. After having processed an event, we release the monitor (variable bf) so that new events can be placed in the buffer, instead of keeping the monitor and processing the remaining events in the buffer.Other approaches might yield better results.
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-