IN - the input data type.OUT - the output data type.public abstract class FunctionInvocation<IN,OUT> extends TemplateInvocation<IN,OUT>
| Constructor and Description |
|---|
FunctionInvocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
onInput(IN input,
ResultChannel<OUT> result)
Called when an input is passed to the routine.
This method is called once for each input object. |
void |
onResult(ResultChannel<OUT> result)
Called when all the inputs has been passed to the routine.
This method is called once in the invocation lifecycle to indicate that the final invocation results should be passed to the result channel. |
void |
onTerminate()
Called when the invocation execution has completed.
|
onAbort, onDestroy, onInitializepublic final void onInput(IN input, @NotNull ResultChannel<OUT> result)
InvocationonInput in interface Invocation<IN,OUT>onInput in class TemplateInvocation<IN,OUT>input - the input.result - the result channel.public final void onResult(@NotNull
ResultChannel<OUT> result)
InvocationonResult in interface Invocation<IN,OUT>onResult in class TemplateInvocation<IN,OUT>result - the result channel.public final void onTerminate()
InvocationonTerminate in interface Invocation<IN,OUT>onTerminate in class TemplateInvocation<IN,OUT>