OUT - The type of the output received from a OutputNode.public interface NodeObserver<OUT>
NodeObserver defines an observer interface for receiving callbacks from
an OutputNode.| Modifier and Type | Method and Description |
|---|---|
void |
onCompleted(OutputNode<OUT> node)
Invoked when the given
OutputNode is completed. |
void |
onError(OutputNode<OUT> node,
java.lang.Throwable throwable)
Invoked when the given
OutputNode has detected an error. |
void |
onInput(OutputNode<OUT> node,
OUT input)
Invoked when the given
OutputNode has received the given input value. |
void |
onReset(OutputNode<OUT> node)
Invoked when the given
OutputNode has been resetted. |
void onInput(OutputNode<OUT> node, OUT input)
OutputNode has received the given input value.node - The @link OutputNode}.input - The input value of type OUT.void onCompleted(OutputNode<OUT> node)
OutputNode is completed.node - The completed OutputNode.void onError(OutputNode<OUT> node, java.lang.Throwable throwable)
OutputNode has detected an error.node - The OutputNode notifying about error.throwable - A Throwable representing the detected error.void onReset(OutputNode<OUT> node)
OutputNode has been resetted.