|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.processing.ConsumerRunnable
This class is designed to act as a data sink. It is a greedy runnable, it consumes the objects as soon as possible and makes a blocking call if no item is readily available.
Constructor Summary | |
ConsumerRunnable(Consumer sink)
Creates new ConsumerRunnable |
Method Summary | |
Consumer |
getSink()
Gives access to the underlying sink. |
void |
run()
The actual consumption process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConsumerRunnable(Consumer sink) throws java.lang.IllegalArgumentException
sink
- The consumer that will consumes the items.
java.lang.IllegalArgumentException
- if sink is null.Method Detail |
public void run()
run
in interface java.lang.Runnable
public Consumer getSink()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |