|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.dataflow.operator.DataflowEventAdapter groovyx.gpars.dataflow.operator.component.ProcessorPauseResume
public final class ProcessorPauseResume
A listener to dataflow operators and selectors allowing them to be paused and resumed.
Field Summary | |
---|---|
private boolean |
paused
|
Constructor Summary | |
---|---|
ProcessorPauseResume()
|
Method Summary | |
---|---|
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. |
Methods inherited from class groovyx.gpars.dataflow.operator.DataflowEventAdapter |
---|
afterRun, afterStart, afterStop, controlMessageArrived, customEvent, messageArrived, messageSentOut, onException, registered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean paused
Constructor Detail |
---|
public ProcessorPauseResume()
Method Detail |
---|
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 messages
public void pause()
public void resume()
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |