Top Description Inners Fields Constructors Methods
org.eclipse.jetty.server

public Class AsyncRequestLogWriter

extends RequestLogWriter
Class Inheritance
Imports
java.io.IOException, java.util.concurrent.BlockingQueue, .TimeUnit, org.eclipse.jetty.util.BlockingArrayQueue, org.slf4j.Logger, .LoggerFactory

An asynchronously writing RequestLogWriter

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final BlockingQueue<String>
private transient AsyncRequestLogWriter.WriterThread
private boolean
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
protected void
doStart()

Overrides org.eclipse.jetty.server.RequestLogWriter.doStart.

Method to override to start the lifecycle

protected void
doStop()

Overrides org.eclipse.jetty.server.RequestLogWriter.doStop.

Method to override to stop the lifecycle

public void
Inherited from org.eclipse.jetty.server.RequestLogWriter:
getDatedFilenamegetFileNamegetFilenameDateFormatgetRetainDaysgetTimeZoneisAppendsetAppendsetFilenamesetFilenameDateFormatsetRetainDayssetTimeZone

Field Detail

_queueback to summary
private final BlockingQueue<String> _queue
_threadback to summary
private transient AsyncRequestLogWriter.WriterThread _thread
_warnedFullback to summary
private boolean _warnedFull
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.server.RequestLogWriter.LOG.

Constructor Detail

AsyncRequestLogWriterback to summary
public AsyncRequestLogWriter()
AsyncRequestLogWriterback to summary
public AsyncRequestLogWriter(String filename)
AsyncRequestLogWriterback to summary
public AsyncRequestLogWriter(String filename, BlockingQueue<String> queue)

Method Detail

doStartback to summary
protected void doStart() throws Exception

Overrides org.eclipse.jetty.server.RequestLogWriter.doStart.

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStart.

Method to override to start the lifecycle

Annotations
@Override
Exceptions
Exception:
If there was a problem starting. Will cause a transition to FAILED state
doStopback to summary
protected void doStop() throws Exception

Overrides org.eclipse.jetty.server.RequestLogWriter.doStop.

Doc from org.eclipse.jetty.util.component.AbstractLifeCycle.doStop.

Method to override to stop the lifecycle

Annotations
@Override
Exceptions
Exception:
If there was a problem stopping. Will cause a transition to FAILED state
writeback to summary
public void write(String log) throws IOException

Overrides org.eclipse.jetty.server.RequestLogWriter.write.

Implements org.eclipse.jetty.server.RequestLog.Writer.write.

Annotations
@Override
org.eclipse.jetty.server back to summary

private Class AsyncRequestLogWriter.WriterThread

extends Thread
Class Inheritance

Field Summary

Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadthreadIdtoStringyield

Constructor Detail

WriterThreadback to summary
pack-priv WriterThread()

Method Detail

runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.

Annotations
@Override