jconch.pipeline.impl
Class InlineThreadingModel

java.lang.Object
  extended by jconch.pipeline.impl.InlineThreadingModel
All Implemented Interfaces:
ThreadingModel

public class InlineThreadingModel
extends Object
implements ThreadingModel

Executes the pipeline stage inline. Does not actually spawn a thread, but simply delegates the execution again.

Author:
Robert Fischer

Constructor Summary
InlineThreadingModel()
           
 
Method Summary
 void execute(PipelineStage toRun)
          Simply calls PipelineStage.execute().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineThreadingModel

public InlineThreadingModel()
Method Detail

execute

public void execute(PipelineStage toRun)
Simply calls PipelineStage.execute().

Specified by:
execute in interface ThreadingModel
Parameters:
toRun - The stage to run.
Throws:
org.apache.commons.lang.NullArgumentException - If the argument is null