Package org.eclipse.jetty.server
Class AsyncRequestLogWriter
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.RequestLogWriter
-
- org.eclipse.jetty.server.AsyncRequestLogWriter
-
- All Implemented Interfaces:
RequestLog.Writer
,LifeCycle
public class AsyncRequestLogWriter extends RequestLogWriter
An asynchronously writing RequestLogWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description AsyncRequestLogWriter()
AsyncRequestLogWriter(java.lang.String filename)
AsyncRequestLogWriter(java.lang.String filename, java.util.concurrent.BlockingQueue<java.lang.String> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
protected void
doStop()
void
write(java.lang.String log)
-
Methods inherited from class org.eclipse.jetty.server.RequestLogWriter
getDatedFilename, getFileName, getFilenameDateFormat, getRetainDays, getTimeZone, isAppend, isEnabled, setAppend, setFilename, setFilenameDateFormat, setRetainDays, setTimeZone
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Method Detail
-
doStart
protected void doStart() throws java.lang.Exception
- Overrides:
doStart
in classRequestLogWriter
- Throws:
java.lang.Exception
-
doStop
protected void doStop() throws java.lang.Exception
- Overrides:
doStop
in classRequestLogWriter
- Throws:
java.lang.Exception
-
write
public void write(java.lang.String log) throws java.io.IOException
- Specified by:
write
in interfaceRequestLog.Writer
- Overrides:
write
in classRequestLogWriter
- Throws:
java.io.IOException
-
-