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.Thread
Deprecated.Since 1.3.Obsolete AsyncAppender dispatcher provided for compatibility only.
-
-
Field Summary
Fields Modifier and Type Field Description private AppenderAttachableImpl
aai
Deprecated.private BoundedFIFO
bf
Deprecated.(package private) AsyncAppender
container
Deprecated.private boolean
interrupted
Deprecated.
-
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) void
close()
Deprecated.void
run()
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:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-