|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.values.ValueQueueService
public class ValueQueueService
Provide a service that supports a blocking Iterable that can be
used as the values for a 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 Summary | |
---|---|
ValueQueueService()
|
Method Summary | |
---|---|
String |
getName()
|
int |
getSize()
Get the current size of the queue. |
Iterable<Object> |
getValues()
Get the values. |
void |
setName(String name)
|
void |
setValue(Object object)
Set a value. |
void |
start()
Start. |
void |
stop()
Stop. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueQueueService()
Method Detail |
---|
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)
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |