public class RingBufferLogEventHandler extends Object implements com.lmax.disruptor.SequenceReportingEventHandler<RingBufferLogEvent>, com.lmax.disruptor.LifecycleAware
Executor passed to the Disruptor
constructor.| Constructor and Description |
|---|
RingBufferLogEventHandler() |
| Modifier and Type | Method and Description |
|---|---|
long |
getThreadId()
Returns the thread ID of the background consumer thread, or
-1 if the background thread has not started
yet. |
default void |
onBatchStart(long arg0,
long arg1) |
void |
onEvent(RingBufferLogEvent event,
long sequence,
boolean endOfBatch) |
void |
onShutdown() |
void |
onStart() |
default void |
onTimeout(long arg0) |
void |
setSequenceCallback(com.lmax.disruptor.Sequence sequenceCallback) |
public void setSequenceCallback(com.lmax.disruptor.Sequence sequenceCallback)
setSequenceCallback in interface com.lmax.disruptor.EventHandler<RingBufferLogEvent>setSequenceCallback in interface com.lmax.disruptor.SequenceReportingEventHandler<RingBufferLogEvent>public void onEvent(RingBufferLogEvent event, long sequence, boolean endOfBatch) throws Exception
onEvent in interface com.lmax.disruptor.EventHandler<RingBufferLogEvent>Exceptionpublic long getThreadId()
-1 if the background thread has not started
yet.-1public void onStart()
onStart in interface com.lmax.disruptor.LifecycleAwarepublic void onShutdown()
onShutdown in interface com.lmax.disruptor.LifecycleAwarepublic void onBatchStart(long arg0,
long arg1)
Copyright © 1999-2025 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.