OUT - the output data type.public interface OutputConsumer<OUT>
--------
| | |
V V |
---------------- |
| onOutput() |----
----------------
| |
| |
------ ------
| | | |
V V V V
---------------- ----------------
| onComplete() | | onError() |
---------------- ----------------
Created by davide-maestroni on 09/07/2014.| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Called when the channel closes after the invocation completes its execution.
|
void |
onError(RoutineException error)
Called when the bounded channel transfer is aborted.
|
void |
onOutput(OUT output)
Called when an output is passed to the channel.
|
void onComplete()
void onError(@Nullable
RoutineException error)
error - the reason of the abortion.void onOutput(OUT output)
output - the output.