|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjconch.pipeline.PipelineStage
jconch.pipeline.Processor<IN_T,OUT_T>
IN_T - The input type.OUT_T - The output type.public abstract class Processor<IN_T,OUT_T>
A processing pipe in the pipeline.
| Constructor Summary | |
|---|---|
protected |
Processor(ThreadingModel threading,
PipeLink<IN_T> inLink,
PipeLink<OUT_T> outLink)
Creates a new intance of Processor. |
| Method Summary | |
|---|---|
void |
execute()
Executes one round of processing for this pipeline stage. |
protected PipeLink<IN_T> |
getLinkIn()
Provides the pipe link that is being drawn from. |
PipeLink<OUT_T> |
getLinkOut()
Provides the pipeline link out. |
boolean |
isFinished()
If the pipeline is not supposed to handle any more elements, either because of an error or because a producer is exhausted. |
abstract OUT_T |
process(IN_T item)
The argument that implements the processing for this class. |
| Methods inherited from class jconch.pipeline.PipelineStage |
|---|
getThreadingModel, isStarted, logMessage, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Processor(ThreadingModel threading,
PipeLink<IN_T> inLink,
PipeLink<OUT_T> outLink)
Processor.
threading - | Method Detail |
|---|
public abstract OUT_T process(IN_T item)
item - The item to process.
null to drop it.public final void execute()
PipelineStage
execute in class PipelineStagepublic boolean isFinished()
PipelineStage
isFinished in class PipelineStagepublic PipeLink<OUT_T> getLinkOut()
null.protected PipeLink<IN_T> getLinkIn()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||