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 inPromisablethat propagates errors to the closest catch handler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsubscribe(FlowCallback<C> callback)Subscribes to the outcome of the execution of asynchronous tasks.
-
-
-
Method Detail
-
subscribe
void subscribe(FlowCallback<C> callback)
Subscribes to the outcome of the execution of asynchronous tasks.
-
-