| java.lang.Object org.jicarilla.plumbing.SimpleScreener
SimpleScreener | public class SimpleScreener implements Screener(Code) | | A screener which tries sinks in the order they were added, or falls back on
the sink that was added last when none of the sinks will accept a message.
author: Leo Simons version: $Id: SimpleScreener.java,v 1.2 2004/03/23 13:37:58 lsimons Exp $ |
m_mutex | final protected Object m_mutex(Code) | | synchronization point for
m_switch .
|
addSink | public void addSink(Selector selector, Sink sink)(Code) | | Add a sink.
Parameters: sink - the sink to add Parameters: selector - the selector that determines whether this sink willreceive a particular message |
selectSink | protected Sink selectSink(Object o)(Code) | | Select a sink from all referenced sinks based on the provided selection
criterium.
Parameters: o - the selection criterium the selected sink throws: IllegalStateException - if no sink can be found for thismessage |
|
|