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.Constructor and Description |
---|
RingBufferLogEventTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
setValues(AsyncLogger anAsyncLogger,
String aLoggerName,
Marker aMarker,
String theFqcn,
Level aLevel,
Message msg,
Throwable aThrowable,
Map<String,String> aMap,
ThreadContext.ContextStack aContextStack,
String aThreadName,
StackTraceElement aLocation,
long aCurrentTimeMillis,
long aNanoTime) |
void |
setValuesPart1(AsyncLogger anAsyncLogger,
String aLoggerName,
Marker aMarker,
String theFqcn,
Level aLevel,
Message msg,
Throwable aThrowable) |
void |
setValuesPart2(Map<String,String> aMap,
ThreadContext.ContextStack aContextStack,
String aThreadName,
StackTraceElement aLocation,
long aCurrentTimeMillis,
long aNanoTime) |
void |
translateTo(RingBufferLogEvent event,
long sequence) |
public void translateTo(RingBufferLogEvent event, long sequence)
translateTo
in interface com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
public void setValues(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable, Map<String,String> aMap, ThreadContext.ContextStack aContextStack, String aThreadName, StackTraceElement aLocation, long aCurrentTimeMillis, long aNanoTime)
public void setValuesPart1(AsyncLogger anAsyncLogger, String aLoggerName, Marker aMarker, String theFqcn, Level aLevel, Message msg, Throwable aThrowable)
public void setValuesPart2(Map<String,String> aMap, ThreadContext.ContextStack aContextStack, String aThreadName, StackTraceElement aLocation, long aCurrentTimeMillis, long aNanoTime)
Copyright © 1999-2017 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.