Package com.gengoai.concurrent
Class IterableProducer<V>
- java.lang.Object
-
- com.gengoai.concurrent.Broker.Producer<V>
-
- com.gengoai.concurrent.IterableProducer<V>
-
- Type Parameters:
V
- the type of item being produced.
public class IterableProducer<V> extends Broker.Producer<V>
A producer implementation that produces items from an iterable.
- Author:
- David B. Bracewell
-
-
Constructor Summary
Constructors Constructor Description IterableProducer(Iterable<V> iterable)
Instantiates a new Iterable producer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
produce()
Logic for producing items to be consumed.-
Methods inherited from class com.gengoai.concurrent.Broker.Producer
isRunning, start, stop, yield
-
-
-
-
Method Detail
-
produce
public void produce()
Description copied from class:Broker.Producer
Logic for producing items to be consumed.- Specified by:
produce
in classBroker.Producer<V>
-
-