Package org.jboss.elemento.flow
Interface Subscription<C extends FlowContext>
- Type Parameters:
C
- the type of the context shared between tasks
public interface Subscription<C extends FlowContext>
An interface to subscribe to the outcome of the execution of asynchronous tasks.
Error Handling
When using the methods in this interface, errors in tasks are caught and are stored in the context.
The context provides methods to check if the execution was successful, ran into a
timeout or failed with an
error. This is different from the methods in Promisable
that propagates
errors to the closest catch handler.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(FlowCallback<C> callback) Subscribes to the outcome of the execution of asynchronous tasks.
-
Method Details
-
subscribe
Subscribes to the outcome of the execution of asynchronous tasks.
-