public class RingBufferLogEventTranslator extends Object implements com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
RingBufferLogEvent
. After this translator populated
the ringbuffer event, the disruptor will update the sequence number so that
the event can be consumed by another thread.Modifier and Type | Field and Description |
---|---|
protected String |
fqcn |
protected org.apache.logging.log4j.Level |
level |
protected org.apache.logging.log4j.Marker |
marker |
protected org.apache.logging.log4j.message.Message |
message |
protected Throwable |
thrown |
Constructor and Description |
---|
RingBufferLogEventTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
setBasicValues(AsyncLogger anAsyncLogger,
String aLoggerName,
org.apache.logging.log4j.Marker aMarker,
String theFqcn,
org.apache.logging.log4j.Level aLevel,
org.apache.logging.log4j.message.Message msg,
Throwable aThrowable,
org.apache.logging.log4j.ThreadContext.ContextStack aContextStack,
StackTraceElement aLocation,
Clock aClock,
NanoClock aNanoClock) |
void |
translateTo(RingBufferLogEvent event,
long sequence) |
void |
updateThreadValues() |
protected org.apache.logging.log4j.Marker marker
protected org.apache.logging.log4j.Level level
protected org.apache.logging.log4j.message.Message message
public RingBufferLogEventTranslator()
public void translateTo(RingBufferLogEvent event, long sequence)
translateTo
in interface com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
public void setBasicValues(AsyncLogger anAsyncLogger, String aLoggerName, org.apache.logging.log4j.Marker aMarker, String theFqcn, org.apache.logging.log4j.Level aLevel, org.apache.logging.log4j.message.Message msg, Throwable aThrowable, org.apache.logging.log4j.ThreadContext.ContextStack aContextStack, StackTraceElement aLocation, Clock aClock, NanoClock aNanoClock)
public void updateThreadValues()
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.