OutcomeHandler

public interface OutcomeHandler<T>

A DispatchOutcome handler.

The handler receives one of the DispatchOutcome result options, such as Success, Error, Interruption or Ignore.

It may also receive the exhaust of the Success result — list of produced Events or Commands or a rejection event.

Parameters

<T>

Protobuf Message or List of messages

Functions

Link copied to clipboard
public abstract void handle(T outcomeResult)
Handles DispatchOutcome result option.