groovyx.gpars.dataflow.operator.component
[Java] Class ProcessorPauseResume
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.
- Authors:
- Vaclav Pech
Field Summary |
private boolean |
paused
|
Method Summary |
java.util.List
|
beforeRun(DataflowProcessor processor, java.util.List messages)
|
void
|
pause()
Resumes the operator so that it can start processing messages again.
|
void
|
resume()
|
paused
private boolean paused
-
ProcessorPauseResume
ProcessorPauseResume()
-
beforeRun
@java.lang.Override* when pausing multiple operators.
public java.util.List beforeRun(DataflowProcessor processor, java.util.List messages)
-
pause
public void pause()
- Resumes the operator so that it can start processing messages again.
resume
public void resume()
-
Copyright © 2008–2013 Václav Pech. All Rights Reserved.