public class RingBufferLogEventTranslator extends java.lang.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 |
---|---|
private AsyncLogger |
asyncLogger |
private ThreadContext.ContextStack |
contextStack |
private long |
currentTimeMillis |
protected java.lang.String |
fqcn |
private ContextDataInjector |
injector |
protected Level |
level |
private java.lang.StackTraceElement |
location |
private java.lang.String |
loggerName |
protected Marker |
marker |
protected Message |
message |
private long |
nanoTime |
private long |
threadId |
private java.lang.String |
threadName |
private int |
threadPriority |
protected java.lang.Throwable |
thrown |
Constructor and Description |
---|
RingBufferLogEventTranslator() |
Modifier and Type | Method and Description |
---|---|
private void |
clear()
Release references held by this object to allow objects to be garbage-collected.
|
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,
long aCurrentTimeMillis,
long aNanoTime) |
void |
translateTo(RingBufferLogEvent event,
long sequence) |
void |
updateThreadValues() |
private final ContextDataInjector injector
private AsyncLogger asyncLogger
private java.lang.String loggerName
protected Marker marker
protected java.lang.String fqcn
protected Level level
protected Message message
protected java.lang.Throwable thrown
private ThreadContext.ContextStack contextStack
private long threadId
private java.lang.String threadName
private int threadPriority
private java.lang.StackTraceElement location
private long currentTimeMillis
private long nanoTime
public void translateTo(RingBufferLogEvent event, long sequence)
translateTo
in interface com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
private void clear()
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, long aCurrentTimeMillis, long aNanoTime)
public void updateThreadValues()