Package org.jboss.elemento.flow
Interface FlowCallback<C extends FlowContext>
-
- Type Parameters:
C- the type of the context shared between the tasks
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface FlowCallback<C extends FlowContext>
A callback for the outcome of the execution of asynchronous tasks.The context provides methods to check if the execution was successful, ran into a timeout or failed with an error.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinish(C context)Called when the execution of the asynchronous tasks has been completed.
-
-
-
Method Detail
-
finish
void finish(C context)
Called when the execution of the asynchronous tasks has been completed.The context provides methods to check if the execution was successful, ran into a timeout or failed with an error.
- Parameters:
context- the context shared between the tasks
-
-