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 interface SagaStateTransition<A>
| Modifier and Type | Interface and Description |
|---|---|
static class |
SagaStateTransition.SagaActionStateChanged<A>
A transition representing state changes of a Saga caused by updates to state of an action
|
static class |
SagaStateTransition.SagaStatusChanged<A>
A transition representing state changes of a Saga caused by updating a sagas status
|
static class |
SagaStateTransition.SetInitialState<A>
A transition for setting the initial state of the Saga
|
static class |
SagaStateTransition.TransitionList<A>
A transition representing multiple state changes to a saga
|
| Modifier and Type | Method and Description |
|---|---|
<B> B |
cata(java.util.function.Function<SagaStateTransition.SetInitialState<A>,B> f1,
java.util.function.Function<SagaStateTransition.SagaActionStateChanged<A>,B> f2,
java.util.function.Function<SagaStateTransition.SagaStatusChanged<A>,B> f3,
java.util.function.Function<SagaStateTransition.TransitionList<A>,B> f4)
Catamorphism over SagaStateTransition
|
<B> B cata(java.util.function.Function<SagaStateTransition.SetInitialState<A>,B> f1, java.util.function.Function<SagaStateTransition.SagaActionStateChanged<A>,B> f2, java.util.function.Function<SagaStateTransition.SagaStatusChanged<A>,B> f3, java.util.function.Function<SagaStateTransition.TransitionList<A>,B> f4)
B - the target type of the catamorphismf1 - transition function based on saga initial statef2 - transition function based on change in action statef3 - transition function based on change in saga statusf4 - transition function based on a list of transitionsCopyright © 2019. All rights reserved.