|
org.codehaus.gpars | |||||||
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 extends DataflowEventAdapter
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
|
beforeRun(DataflowProcessor processor, java.util.List messages)
|
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 DataflowEventAdapter | |
---|---|
afterRun, afterStart, afterStop, beforeRun, controlMessageArrived, customEvent, messageArrived, messageSentOut, onException, registered |
Field Detail |
---|
private boolean paused
Constructor Detail |
---|
ProcessorPauseResume()
Method Detail |
---|
@Override public java.util.List beforeRun(DataflowProcessor processor, java.util.List messages)
public void pause()
public void resume()
Copyright © 2008–2012 Václav Pech. All Rights Reserved.