org.codehaus.gpars

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

 
Constructor Summary
ProcessorPauseResume()

 
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()

 
Methods inherited from class DataflowEventAdapter
afterRun, afterStart, afterStop, beforeRun, controlMessageArrived, customEvent, messageArrived, messageSentOut, onException, registered
 

Field Detail

paused

private boolean paused


 
Constructor Detail

ProcessorPauseResume

ProcessorPauseResume()


 
Method Detail

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.