public class LoggingQueue
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
LogListener |
mListener
The listener queued events are written to.
|
int |
mMaxNormalSize
The queue size threshold at which the thread ceases to run at its normal priority and becomes active.
|
int |
mMinActiveSize
The queue size threshold at which the thread ceases to be active.
|
atg.core.util.GovernorQueue |
mQueue
The actual queue.
|
Constructor and Description |
---|
LoggingQueue(LogListener pListener,
int pMinActiveSize,
int pMaxNormalSize)
Constructs a LoggingQueue.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flush all entries from the queue.
|
void |
processQueueEntry()
Gets a log event out of the queue and writes it to the listener.
|
void |
queueLogEvent(LogEvent pLogEvent)
Adds the given log event to the queue.
|
void |
run()
Asynchronous thread that collects log entries and writes them.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static java.lang.String CLASS_VERSION
public int mMinActiveSize
public int mMaxNormalSize
public atg.core.util.GovernorQueue mQueue
public LogListener mListener
public LoggingQueue(LogListener pListener, int pMinActiveSize, int pMaxNormalSize)
pListener
- the listenerpMinActiveSize
- the minimum active sizepMaxNormalSize
- the maximum active sizepublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void queueLogEvent(LogEvent pLogEvent)
pLogEvent
- the log eventpublic void processQueueEntry()
public void flush()