|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lmax.disruptor.NoOpConsumer
public final class NoOpConsumer
No operation version of a Consumer
that simply tracks a RingBuffer
.
This is useful in tests or for pre-filling a RingBuffer
from a producer.
Constructor Summary | |
---|---|
NoOpConsumer(RingBuffer ringBuffer)
Construct a Consumer that simply tracks a RingBuffer . |
Method Summary | |
---|---|
long |
getSequence()
Get the sequence up to which this Consumer has consumed AbstractEntry s |
void |
halt()
Signal that this Consumer 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 NoOpConsumer(RingBuffer ringBuffer)
Consumer
that simply tracks a RingBuffer
.
ringBuffer
- to track.Method Detail |
---|
public long getSequence()
Consumer
AbstractEntry
s
getSequence
in interface Consumer
AbstractEntry
public void halt()
Consumer
ConsumerBarrier.alert()
to notify the thread to check status.
halt
in interface Consumer
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |