public class EventPipelineRunner
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private int |
m_numEntries |
private EventPipeline |
m_pipeline |
| Constructor and Description |
|---|
EventPipelineRunner(EventPipeline pipeline)
Create an EventPipelineRunner with the supplied pipeline and a
policy of dequeueing one entry at a time.
|
EventPipelineRunner(EventPipeline pipeline,
int numEntries)
Create an EventPipelineRunner with the supplied pipeline and
number of events to dequeue at a time.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumEntries()
Return the number of entries to process at one time.
|
EventPipeline |
getPipeline()
Get the pipeline we are processing at this time.
|
void |
run()
The run method will process events once and then end.
|
java.lang.String |
toString() |
private final EventPipeline m_pipeline
private final int m_numEntries
public EventPipelineRunner(EventPipeline pipeline)
pipeline - the pipeline to runpublic EventPipelineRunner(EventPipeline pipeline, int numEntries)
pipeline - the pipeline to runnumEntries - the number of entries to dequeuepublic int getNumEntries()
public EventPipeline getPipeline()
public void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Object