com.lmax.disruptor
Interface SequenceReportingEventHandler<T>

Type Parameters:
T - event implementation storing the data for sharing during exchange or parallel coordination of an event.
All Superinterfaces:
EventHandler<T>

public interface SequenceReportingEventHandler<T>
extends EventHandler<T>

Used by the BatchEventProcessor to set a callback allowing the EventHandler to notify when it has finished consuming an event if this happens after the EventHandler.onEvent(Object, long, boolean) call.

Typically this would be used when the handler is performing some sort of batching operation such are writing to an IO device.


Method Summary
 void setSequenceCallback(Sequence sequenceCallback)
          Call by the BatchEventProcessor to setup the callback.
 
Methods inherited from interface com.lmax.disruptor.EventHandler
onEvent
 

Method Detail

setSequenceCallback

void setSequenceCallback(Sequence sequenceCallback)
Call by the BatchEventProcessor to setup the callback.

Parameters:
sequenceCallback - callback on which to notify the BatchEventProcessor that the sequence has progressed.


Copyright © 2011 LMAX Ltd. All Rights Reserved.