|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lmax.disruptor.NoOpEventProcessor
public final class NoOpEventProcessor
No operation version of a EventProcessor that simply tracks a Sequencer.
This is useful in tests or for pre-filling a RingBuffer from a publisher.
| Constructor Summary | |
|---|---|
NoOpEventProcessor(Sequencer sequencer)
Construct a EventProcessor that simply tracks a Sequencer. |
|
| Method Summary | |
|---|---|
Sequence |
getSequence()
Get a reference to the Sequence being used by this EventProcessor. |
void |
halt()
Signal that this EventProcessor should stop when it has finished consuming at the next clean break. |
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoOpEventProcessor(Sequencer sequencer)
EventProcessor that simply tracks a Sequencer.
sequencer - to track.| Method Detail |
|---|
public Sequence getSequence()
EventProcessorSequence being used by this EventProcessor.
getSequence in interface EventProcessorSequence for this EventProcessorpublic void halt()
EventProcessorSequenceBarrier.alert() to notify the thread to check status.
halt in interface EventProcessorpublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||