Package com.lmax.disruptor
Class EventPoller<T>
- java.lang.Object
-
- com.lmax.disruptor.EventPoller<T>
-
public class EventPoller<T> extends Object
Experimental poll-based interface for the Disruptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EventPoller.Handler<T>
static class
EventPoller.PollState
-
Constructor Summary
Constructors Constructor Description EventPoller(DataProvider<T> dataProvider, Sequencer sequencer, Sequence sequence, Sequence gatingSequence)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequence
getSequence()
static <T> EventPoller<T>
newInstance(DataProvider<T> dataProvider, Sequencer sequencer, Sequence sequence, Sequence cursorSequence, Sequence... gatingSequences)
EventPoller.PollState
poll(EventPoller.Handler<T> eventHandler)
-
-
-
Constructor Detail
-
EventPoller
public EventPoller(DataProvider<T> dataProvider, Sequencer sequencer, Sequence sequence, Sequence gatingSequence)
-
-
Method Detail
-
poll
public EventPoller.PollState poll(EventPoller.Handler<T> eventHandler) throws Exception
- Throws:
Exception
-
newInstance
public static <T> EventPoller<T> newInstance(DataProvider<T> dataProvider, Sequencer sequencer, Sequence sequence, Sequence cursorSequence, Sequence... gatingSequences)
-
getSequence
public Sequence getSequence()
-
-