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 SagaStateTransition.SagaActionStateChanged<A> extends Object implements SagaStateTransition<A>
SagaStateTransition.SagaActionStateChanged<A>, SagaStateTransition.SagaStatusChanged<A>, SagaStateTransition.SetInitialState<A>, SagaStateTransition.TransitionList<A>
Modifier and Type | Field and Description |
---|---|
List<SagaError> |
actionErrors |
ActionId |
actionId |
ActionStatus |
actionStatus |
boolean |
isUndo |
SagaId |
sagaId |
Optional<UndoCommand<A>> |
undoCommand |
Constructor and Description |
---|
SagaActionStateChanged() |
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
|
public final SagaId sagaId
public final ActionId actionId
public final ActionStatus actionStatus
public final Optional<UndoCommand<A>> undoCommand
public final boolean isUndo
public <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)
SagaStateTransition
cata
in interface SagaStateTransition<A>
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.