IN - the input data type.OUT - the output data type.public abstract class FilterInvocation<IN,OUT> extends InvocationFactory<IN,OUT> implements Invocation<IN,OUT>
| Constructor and Description |
|---|
FilterInvocation() |
| Modifier and Type | Method and Description |
|---|---|
Invocation<IN,OUT> |
newInvocation()
Creates and return a new invocation instance.
A proper implementation will return a new invocation instance each time it is called, unless the returned object is immutable and does not cause any side effect. Any behavior other than that may lead to unexpected results. |
void |
onAbort(RoutineException reason)
Called when the routine execution is aborted.
This method may be called at any time after the invocation initialization. |
void |
onDestroy()
Called when the routine invocation is no longer needed.
|
void |
onInitialize()
Called when the routine invocation is initialized.
This is always the first method in the invocation lifecycle. |
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonInput@NotNull public final Invocation<IN,OUT> newInvocation()
InvocationFactorynewInvocation in class InvocationFactory<IN,OUT>public final void onAbort(@Nullable
RoutineException reason)
InvocationonAbort in interface Invocation<IN,OUT>reason - the reason of the abortion.public final void onDestroy()
InvocationonDestroy in interface Invocation<IN,OUT>public final void onInitialize()
InvocationonInitialize in interface Invocation<IN,OUT>public final void onResult(@NotNull
ResultChannel<OUT> result)
InvocationonResult in interface Invocation<IN,OUT>result - the result channel.public final void onTerminate()
InvocationonTerminate in interface Invocation<IN,OUT>