com.lmax.disruptor
Interface SequenceTrackingHandler<T extends AbstractEntry>

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

public interface SequenceTrackingHandler<T extends AbstractEntry>
extends BatchHandler<T>

Used by the BatchConsumer to set a callback allowing the BatchHandler to notify when it has finished consuming an AbstractEntry if this happens after the BatchHandler.onAvailable(AbstractEntry) 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 setSequenceTrackerCallback(BatchConsumer.SequenceTrackerCallback sequenceTrackerCallback)
          Call by the BatchConsumer to setup the callback.
 
Methods inherited from interface com.lmax.disruptor.BatchHandler
onAvailable, onEndOfBatch
 

Method Detail

setSequenceTrackerCallback

void setSequenceTrackerCallback(BatchConsumer.SequenceTrackerCallback sequenceTrackerCallback)
Call by the BatchConsumer to setup the callback.

Parameters:
sequenceTrackerCallback - callback on which to notify the BatchConsumer that the sequence has progressed.


Copyright © 2011 LMAX Ltd. All Rights Reserved.