public class ValueQueueService extends Object implements ValueConsumer<Object>
ForEachJob
.
Values are placed on the queue by setting the value property.
When this service is stopped any iterators in use return false from their hasNext method. This will cause the foreach job to complete.
Constructor and Description |
---|
ValueQueueService() |
public void start()
public void stop()
public Iterable<Object> getValues()
public void setValue(Object object)
setValue
in interface ValueConsumer<Object>
object
- public int getSize()
public String getName()
public void setName(String name)