|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjconch.pipeline.PipelineStage
jconch.pipeline.Consumer<T>
public abstract class Consumer<T>
The base implementation of a pipe that consumes elements without producing anything.
| Constructor Summary | |
|---|---|
protected |
Consumer(ThreadingModel threading,
PipeLink<T> in)
Creates a new instance of Consumer. |
| Method Summary | |
|---|---|
abstract void |
consumeItem(T item)
Responsible for consuming items. |
void |
execute()
Fetches an object and calls consumeItem(Object) on it. |
PipeLink<T> |
getLinkIn()
Provides the pipe link that is being drawn from. |
boolean |
isFinished()
In addition to the super implementation, it checks for error conditions. |
| 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 Consumer(ThreadingModel threading,
PipeLink<T> in)
Consumer.
threading - The model for this consumer to use.in - The link into this stage.
org.apache.commons.lang.NullArgumentException - If either argument is null| Method Detail |
|---|
public abstract void consumeItem(T item)
item - The item to consume; never nullpublic final void execute()
consumeItem(Object) on it.
execute in class PipelineStagepublic boolean isFinished()
isFinished in class PipelineStagepublic PipeLink<T> getLinkIn()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||