com.lmax.disruptor.EventHandler<T>
Callback interface to be implemented for processing events as they become available in the RingBuffer
用于提供对RingBuffer中当事件可用时的接口
Type Parameters:
<T> event implementation storing the data for sharing during exchange or parallel coordination of an event.
事件数据
See Also:
if you want to handle exceptions propagated out of the handler.
如果需要将handler中出现的异常传播出去,可通过如下设置:--->>
void com.lmax.disruptor.BatchEventProcessor.setExceptionHandler(ExceptionHandler<? super T> exceptionHandler)
Set a new ExceptionHandler for handling exceptions propagated out of the BatchEventProcessor
Parameters:
exceptionHandler to replace the existing exceptionHandler.
设置的exceptionHandler,接口定义如下:--->>
com.lmax.disruptor.ExceptionHandler<T>
Callback handler for uncaught exceptions in the event processing cycle of the BatchEventProcessor
在BatchEventProcessor的事件处理循环中定义对未捕获异常的处理接口