groovyx.gpars.dataflow.impl
Class DataflowChannelEventOrchestrator<T>
java.lang.Object
groovyx.gpars.dataflow.impl.DataflowChannelEventOrchestrator<T>
- All Implemented Interfaces:
- DataflowChannelEventDistibutor<T>, DataflowChannelEventListenerManager<T>
public final class DataflowChannelEventOrchestrator<T>
- extends java.lang.Object
- implements DataflowChannelEventListenerManager<T>, DataflowChannelEventDistibutor<T>
Groups the listener-related functionality shared by dataflow channels
- Author:
- Vaclav Pech
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
private final java.util.Collection<DataflowChannelListener<T>> listeners
DataflowChannelEventOrchestrator
public DataflowChannelEventOrchestrator()
addDataflowChannelListener
public void addDataflowChannelListener(DataflowChannelListener<T> listener)
- Specified by:
addDataflowChannelListener
in interface DataflowChannelEventListenerManager<T>
addAllDataflowChannelListeners
public void addAllDataflowChannelListeners(java.util.Collection<DataflowChannelListener<T>> listeners)
- Specified by:
addAllDataflowChannelListeners
in interface DataflowChannelEventListenerManager<T>
removeDataflowChannelListener
public void removeDataflowChannelListener(DataflowChannelListener<T> listener)
- Specified by:
removeDataflowChannelListener
in interface DataflowChannelEventListenerManager<T>
getListeners
public java.util.Collection<DataflowChannelListener<T>> getListeners()
- Specified by:
getListeners
in interface DataflowChannelEventListenerManager<T>
fireOnMessage
public void fireOnMessage(T message)
- Specified by:
fireOnMessage
in interface DataflowChannelEventDistibutor<T>