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 GenericRecordpublic static final class SagaDSL.SubSaga<A> extends Object
Subsaga is 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 |
|---|
SubSaga() |
| Modifier and Type | Method and Description |
|---|---|
SagaDSL.SubSaga<A> |
andThen(SagaDSL.SubSaga<A> next)
Defines a dependency between two saga actions (or two sub-sagas).
|
public SagaDSL.SubSaga<A> andThen(SagaDSL.SubSaga<A> next)
next - the actions of next subsaga are only executed once the actions of this has completed.this and next combinedCopyright © 2019. All rights reserved.