com.lmax.disruptor
Interface Consumer

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
BatchConsumer, NoOpConsumer

public interface Consumer
extends java.lang.Runnable

EntryConsumers waitFor AbstractEntrys to become available for consumption from the RingBuffer


Method Summary
 long getSequence()
          Get the sequence up to which this Consumer has consumed AbstractEntrys
 void halt()
          Signal that this Consumer should stop when it has finished consuming at the next clean break.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getSequence

long getSequence()
Get the sequence up to which this Consumer has consumed AbstractEntrys

Returns:
the sequence of the last consumed AbstractEntry

halt

void halt()
Signal that this Consumer should stop when it has finished consuming at the next clean break. It will call ConsumerBarrier.alert() to notify the thread to check status.



Copyright © 2011 LMAX Ltd. All Rights Reserved.