Class 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 ringbuffer 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.
    • Field Detail

      • marker

        protected Marker marker
      • fqcn

        protected java.lang.String fqcn
      • level

        protected Level level
      • message

        protected Message message
      • thrown

        protected java.lang.Throwable thrown
    • Constructor Detail

      • RingBufferLogEventTranslator

        public RingBufferLogEventTranslator()
    • Method Detail

      • translateTo

        public void translateTo​(RingBufferLogEvent event,
                                long sequence)
        Specified by:
        translateTo in interface com.lmax.disruptor.EventTranslator<RingBufferLogEvent>
      • updateThreadValues

        public void updateThreadValues()