public final class NoOpEventProcessor extends Object implements EventProcessor
EventProcessor that simply tracks a Sequence.
This is useful in tests or for pre-filling a RingBuffer from a publisher.
| 构造器和说明 |
|---|
NoOpEventProcessor(RingBuffer<?> sequencer)
Construct a
EventProcessor that simply tracks a Sequence object. |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
boolean |
isRunning() |
void |
run() |
public NoOpEventProcessor(RingBuffer<?> sequencer)
EventProcessor that simply tracks a Sequence object.sequencer - to track.public Sequence getSequence()
EventProcessorSequence being used by this EventProcessor.getSequence 在接口中 EventProcessorSequence for this EventProcessorpublic void halt()
EventProcessorSequenceBarrier.alert() to notify the thread to check status.halt 在接口中 EventProcessorpublic boolean isRunning()
isRunning 在接口中 EventProcessorCopyright © 2018 Pivotal Software, Inc.. All rights reserved.