public class AsyncRequestLogWriter extends RequestLogWriter
| Modifier and Type | Class and Description |
|---|---|
private class |
AsyncRequestLogWriter.WriterThread |
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.BlockingQueue<java.lang.String> |
_queue |
private AsyncRequestLogWriter.WriterThread |
_thread |
private boolean |
_warnedFull |
private static Logger |
LOG |
| Constructor and Description |
|---|
AsyncRequestLogWriter() |
AsyncRequestLogWriter(java.lang.String filename) |
AsyncRequestLogWriter(java.lang.String filename,
java.util.concurrent.BlockingQueue<java.lang.String> queue) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
write(java.lang.String log) |
getDatedFilename, getFileName, getFilenameDateFormat, getRetainDays, getTimeZone, isAppend, isEnabled, setAppend, setFilename, setFilenameDateFormat, setRetainDays, setTimeZoneaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toStringprivate static final Logger LOG
private final java.util.concurrent.BlockingQueue<java.lang.String> _queue
private transient AsyncRequestLogWriter.WriterThread _thread
private boolean _warnedFull
public AsyncRequestLogWriter()
public AsyncRequestLogWriter(java.lang.String filename)
public AsyncRequestLogWriter(java.lang.String filename,
java.util.concurrent.BlockingQueue<java.lang.String> queue)
protected void doStart()
throws java.lang.Exception
doStart in class RequestLogWriterjava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class RequestLogWriterjava.lang.Exceptionpublic void write(java.lang.String log)
throws java.io.IOException
write in interface RequestLog.Writerwrite in class RequestLogWriterjava.io.IOException