public final class DataflowChannelEventOrchestrator<T> extends java.lang.Object implements DataflowChannelEventListenerManager<T>, BindErrorListenerManager<T>, DataflowChannelEventDistributor<T>, BindErrorDistributor<T>
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<BindErrorListener<T>> |
BindErrorListener |
private java.util.Collection<DataflowChannelListener<T>> |
listeners |
Constructor and Description |
---|
DataflowChannelEventOrchestrator() |
Modifier and Type | Method and Description |
---|---|
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) |
private final java.util.Collection<DataflowChannelListener<T>> listeners
private final java.util.Collection<BindErrorListener<T>> BindErrorListener
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 DataflowChannelEventDistributor<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 BindErrorDistributor<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 BindErrorDistributor<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 BindErrorDistributor<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 BindErrorDistributor<T>
oldError
- The already bound ThrowablefailedError
- The error attempted to be bound