A- a representation of an action command that is shared across all actions in the saga. This is typically a generic type, such as Json, or if using Avro serialization, SpecificRecord or GenericRecord
public static final class SagaDSL.SubSaga<A> extends Object
Subsagais a subset of a saga consisting of one or more action, with dependencies defined between them.
When adding an action with
SagaBuilder.addAction() a SubSaga is created with a single action.
Defining dependencies with
andThen() has the effect of combining two
Subsagas into a combined
Subsaga with the action from both of them in the prescribed order.
|Constructor and Description|
|Modifier and Type||Method and Description|
Defines a dependency between two saga actions (or two sub-sagas).
Copyright © 2019. All rights reserved.