Combines multiple sources into a single one. A collector is used in the
event pipeline pumbling to combine multiple sources and form a single new
one. Each get() performed on the Collector will retrieve an
element from one of the sources the Collector contains. From wich source an
element will be retrieved is implementation-specific, though the
implementation should strive to make sure that no starvation occurs. In
diagram form:
+---------------+
|Collector |
addSource() |+---------+ |
------> ||Source |-\ |
|+---------+ | |
|+---------+ | |
||Source |->--|--> get() / poll()
|+---------+ | |
|+---------+ | |
||Source |-/ |
|+---------+ |
+---------------+
author: Leo Simons version: $Id: Collector.java,v 1.1 2004/03/22 21:20:13 lsimons Exp $ |