public final class ProcessorPauseResume extends DataflowEventAdapter
Modifier and Type | Field and Description |
---|---|
private boolean |
paused |
Constructor and Description |
---|
ProcessorPauseResume() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
beforeRun(DataflowProcessor processor,
java.util.List<java.lang.Object> messages)
Invoked when all messages required to trigger the operator become available in the input channels.
|
void |
pause()
Pauses the operator so that it blocks the next time it attempts to process a message.
|
void |
resume()
Resumes the operator so that it can start processing messages again.
|
afterRun, afterStart, afterStop, controlMessageArrived, customEvent, messageArrived, messageSentOut, onException, registered
public java.util.List<java.lang.Object> beforeRun(DataflowProcessor processor, java.util.List<java.lang.Object> messages)
DataflowEventAdapter
beforeRun
in interface DataflowEventListener
beforeRun
in class DataflowEventAdapter
processor
- The reporting dataflow operator/selectormessages
- The incoming messagespublic void pause()
public void resume()