DispatchOutcomeHandler

public final class DispatchOutcomeHandler

A holder of a DispatchOutcome.

Functions

Link copied to clipboard
Accepts Success case handler.
Link copied to clipboard
public static DispatchOutcomeHandler from(DispatchOutcome outcome)
Creates instance for the passed outcome.
Link copied to clipboard
public DispatchOutcome handle()
Handles the outcome with the configured handlers and returns the outcome to the caller.
Link copied to clipboard
Accepts ProducedCommands success case handler.
Link copied to clipboard
Accepts Error case handler.
Link copied to clipboard
Accepts ProducedEvents success case handler.
Link copied to clipboard
Accepts Ignored case handler.
Link copied to clipboard
public DispatchOutcomeHandler onInterruption(OutcomeHandler<Interruption> handler)
Accepts Interruption case handler.
Link copied to clipboard
Accepts rejection success case handler.
Link copied to clipboard
Accepts Success case handler.