|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjconch.pipeline.PipeStage
jconch.pipeline.Producer<T>
jconch.pipeline.impl.CollectionProducer<T>
public abstract class CollectionProducer<T>
A producer which provides elements from a given collection.
| Field Summary |
|---|
| Fields inherited from class jconch.pipeline.Producer |
|---|
link |
| Constructor Summary | |
|---|---|
CollectionProducer(java.util.Collection<T> data,
ThreadingModel model,
PipeLink<T> out)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Collection<T> |
getCollection()
Gets the collection backing the instance. |
protected boolean |
isExhausted()
Determines if the producer is done producing elements. |
T |
produceItem()
Method that must be implemented to queue the producer. |
| Methods inherited from class jconch.pipeline.Producer |
|---|
execute, getLinkOut, isFinished |
| Methods inherited from class jconch.pipeline.PipeStage |
|---|
getThreadingModel, isStarted, logMessage, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionProducer(java.util.Collection<T> data,
ThreadingModel model,
PipeLink<T> out)
data - The collection to draw elements from.
org.apache.commons.lang.NullArgumentException - If the argument is null| Method Detail |
|---|
protected boolean isExhausted()
isExhausted in class Producer<T>public T produceItem()
Producer
produceItem in class Producer<T>public java.util.Collection<T> getCollection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||