OUT - the output data type.public abstract class TemplateOutputConsumer<OUT> extends Object implements OutputConsumer<OUT>
| Constructor and Description |
|---|
TemplateOutputConsumer() |
| 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.
|
public void onComplete()
OutputConsumeronComplete in interface OutputConsumer<OUT>public void onError(@Nullable
RoutineException error)
OutputConsumeronError in interface OutputConsumer<OUT>error - the reason of the abortion.public void onOutput(OUT output)
OutputConsumeronOutput in interface OutputConsumer<OUT>output - the output.