|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovyx.gpars.dataflow.impl.DataflowChannelEventOrchestrator<T>
public final class DataflowChannelEventOrchestrator<T>
Groups the listener-related functionality shared by dataflow channels
Field Summary | |
---|---|
private java.util.Collection<BindErrorListener<T>> |
BindErrorListener
|
private java.util.Collection<DataflowChannelListener<T>> |
listeners
|
Constructor Summary | |
---|---|
DataflowChannelEventOrchestrator()
|
Method Summary | |
---|---|
void |
addAllBindErrorListeners(java.util.Collection<BindErrorListener<T>> listeners)
|
void |
addAllDataflowChannelListeners(java.util.Collection<DataflowChannelListener<T>> listeners)
|
void |
addBindErrorListener(BindErrorListener<T> listener)
|
void |
addDataflowChannelListener(DataflowChannelListener<T> listener)
|
void |
fireBindError(java.lang.Throwable oldError,
T failedValue,
boolean uniqueBind)
Notifies all listeners about failed bind operations |
void |
fireBindError(java.lang.Throwable oldError,
java.lang.Throwable failedError)
Notifies all listeners about failed bindError operations |
void |
fireBindError(T oldValue,
T failedValue,
boolean uniqueBind)
Notifies all listeners about failed bind operations |
void |
fireBindError(T oldValue,
java.lang.Throwable failedError)
Notifies all listeners about failed bindError operations |
void |
fireOnMessage(T message)
|
java.util.Collection<BindErrorListener<T>> |
getBindErrorListeners()
|
java.util.Collection<DataflowChannelListener<T>> |
getListeners()
|
void |
removeBindErrorListener(BindErrorListener<T> listener)
|
void |
removeDataflowChannelListener(DataflowChannelListener<T> listener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Collection<DataflowChannelListener<T>> listeners
private final java.util.Collection<BindErrorListener<T>> BindErrorListener
Constructor Detail |
---|
public DataflowChannelEventOrchestrator()
Method Detail |
---|
public void addDataflowChannelListener(DataflowChannelListener<T> listener)
addDataflowChannelListener
in interface DataflowChannelEventListenerManager<T>
public void addAllDataflowChannelListeners(java.util.Collection<DataflowChannelListener<T>> listeners)
addAllDataflowChannelListeners
in interface DataflowChannelEventListenerManager<T>
public void removeDataflowChannelListener(DataflowChannelListener<T> listener)
removeDataflowChannelListener
in interface DataflowChannelEventListenerManager<T>
public java.util.Collection<DataflowChannelListener<T>> getListeners()
getListeners
in interface DataflowChannelEventListenerManager<T>
public void fireOnMessage(T message)
fireOnMessage
in interface DataflowChannelEventDistibutor<T>
public void addBindErrorListener(BindErrorListener<T> listener)
addBindErrorListener
in interface BindErrorListenerManager<T>
public void addAllBindErrorListeners(java.util.Collection<BindErrorListener<T>> listeners)
addAllBindErrorListeners
in interface BindErrorListenerManager<T>
public void removeBindErrorListener(BindErrorListener<T> listener)
removeBindErrorListener
in interface BindErrorListenerManager<T>
public java.util.Collection<BindErrorListener<T>> getBindErrorListeners()
getBindErrorListeners
in interface BindErrorListenerManager<T>
public void fireBindError(T oldValue, T failedValue, boolean uniqueBind)
fireBindError
in interface BindErrorDistibutor<T>
oldValue
- The already bound valuefailedValue
- The value attempted to be bounduniqueBind
- Flag indicating bindUnique() method callpublic void fireBindError(T oldValue, java.lang.Throwable failedError)
fireBindError
in interface BindErrorDistibutor<T>
oldValue
- The already bound valuefailedError
- The error attempted to be boundpublic void fireBindError(java.lang.Throwable oldError, T failedValue, boolean uniqueBind)
fireBindError
in interface BindErrorDistibutor<T>
oldError
- The already bound ThrowablefailedValue
- The value attempted to be bounduniqueBind
- Flag indicating bindUnique() method callpublic void fireBindError(java.lang.Throwable oldError, java.lang.Throwable failedError)
fireBindError
in interface BindErrorDistibutor<T>
oldError
- The already bound ThrowablefailedError
- The error attempted to be bound
|
Copyright © 2008–2013 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |