|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjconch.pipeline.builder.PipelineBuilder<CURRENT_T>
public class PipelineBuilder<CURRENT_T>
Class for programmatically building up a pipeline. It provides convenient
access to the ThreadingModel and PipeLink of the elements
PipelineStage that makes up the tail of the pipeline, as well as
enforcing type safety through generics. In addition, it starts the elements
(see PipelineStage.start()) as they are attached to the pipeline.
| Constructor Summary | |
|---|---|
PipelineBuilder(Producer<CURRENT_T> start)
Constructor. |
|
| Method Summary | ||
|---|---|---|
void |
attachConsumer(Consumer<CURRENT_T> consumer)
Attaches a consumer onto the end of the pipeline. |
|
|
attachProcessor(Processor<CURRENT_T,NEW_T> processor)
Attaches a processor onto the end of the pipeline. |
|
PipeLink<CURRENT_T> |
getLink()
Gets the link of the instance. |
|
ThreadingModel |
getThreadingModel()
Gets the threading model of the element which was last attached. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PipelineBuilder(Producer<CURRENT_T> start)
start - The producer which starts the pipeline.
org.apache.commons.lang.NullArgumentException - If the argument is null.| Method Detail |
|---|
public <NEW_T> PipelineBuilder<NEW_T> attachProcessor(Processor<CURRENT_T,NEW_T> processor)
NEW_T - The new type that is being processed.processor - The processor which will process elements.
org.apache.commons.lang.NullArgumentException - If the argument is null.public void attachConsumer(Consumer<CURRENT_T> consumer)
consumer - The consumer to attach.public PipeLink<CURRENT_T> getLink()
public ThreadingModel getThreadingModel()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||