| |
|
| java.lang.Object org.jicarilla.plumbing.SimpleCollector
SimpleCollector | public class SimpleCollector implements Collector(Code) | | A collector which tries to gather messages from a random subset of its
sources (the subset is of fixed size though).
author: Leo Simons version: $Id: SimpleCollector.java,v 1.2 2004/03/23 13:37:58 lsimons Exp $ |
m_mutex | final protected Object m_mutex(Code) | | synchronization point for
m_sources .
|
m_sources | final protected List m_sources(Code) | | the sources to collect from.
|
SimpleCollector | public SimpleCollector()(Code) | | Create a new instance backed by an
ArrayList .
|
addSource | public void addSource(Source source)(Code) | | Add a source to the processor.
Parameters: source - the source to add |
selectSource | protected Source selectSource()(Code) | | Select a random source from all referenced sources.
the selected source |
|
|
|