T
- event implementation storing the data for sharing during exchange or parallel coordination of an event.public interface SequenceReportingEventHandler<T> extends EventHandler<T>
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 as writing to an IO
device; after the operation has completed, the implementation should call Sequence.set(long)
to update the
sequence and allow other processes that are dependent on this handler to progress.
Modifier and Type | Method and Description |
---|---|
void |
setSequenceCallback(Sequence sequenceCallback)
Call by the
BatchEventProcessor to setup the callback. |
onEvent
void setSequenceCallback(Sequence sequenceCallback)
BatchEventProcessor
to setup the callback.sequenceCallback
- callback on which to notify the BatchEventProcessor
that the sequence has progressed.Copyright © 2011 - 2018 LMAX Ltd. All Rights Reserved.