Class RingBufferLogEventTranslator
- java.lang.Object
-
- org.apache.logging.log4j.core.async.RingBufferLogEventTranslator
-
- All Implemented Interfaces:
com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
public class RingBufferLogEventTranslator extends java.lang.Object implements com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
This class is responsible for writing elements that make up a log event into the ringbufferRingBufferLogEvent. After this translator populated the ringbuffer event, the disruptor will update the sequence number so that the event can be consumed by another thread.
-
-
Constructor Summary
Constructors Constructor Description RingBufferLogEventTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetBasicValues(AsyncLogger anAsyncLogger, java.lang.String aLoggerName, Marker aMarker, java.lang.String theFqcn, Level aLevel, Message msg, java.lang.Throwable aThrowable, ThreadContext.ContextStack aContextStack, java.lang.StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock)voidtranslateTo(RingBufferLogEvent event, long sequence)voidupdateThreadValues()
-
-
-
Method Detail
-
translateTo
public void translateTo(RingBufferLogEvent event, long sequence)
- Specified by:
translateToin interfacecom.lmax.disruptor.EventTranslator<RingBufferLogEvent>
-
setBasicValues
public void setBasicValues(AsyncLogger anAsyncLogger, java.lang.String aLoggerName, Marker aMarker, java.lang.String theFqcn, Level aLevel, Message msg, java.lang.Throwable aThrowable, ThreadContext.ContextStack aContextStack, java.lang.StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock)
-
updateThreadValues
public void updateThreadValues()
-
-