| java.lang.Object org.jicarilla.plumbing.SimpleMulticaster
SimpleMulticaster | public class SimpleMulticaster implements Multicaster(Code) | | A
Multicaster which clones
Cloneable messages before sending
them to all its sinks, but makes no attempt to do so for objects that do not
implement Cloneable.
author: Leo Simons version: $Id: SimpleMulticaster.java,v 1.4 2003/11/18 16:09:11 lsimons Exp version: $ |
Field Summary | |
final protected Object | m_mutex synchronization point for
m_sinks . | final protected List | m_sinks the referenced sinks. |
m_mutex | final protected Object m_mutex(Code) | | synchronization point for
m_sinks .
|
m_sinks | final protected List m_sinks(Code) | | the referenced sinks.
|
SimpleMulticaster | public SimpleMulticaster()(Code) | | Create a new instance backed by an
ArrayList .
|
addSink | public void addSink(Sink sink)(Code) | | Add a sink.
Parameters: sink - the sink to add |
tryClone | protected Object tryClone(Object o)(Code) | | Try and create a clone of an object. If the object is not
Cloneable or if the cloning fails, don't clone.
Parameters: o - the object to clone the new clone, or the object itself if the object wasn't cloned |
|
|