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.SagaStatusChanged<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> |
sagaErrors |
SagaId |
sagaId |
SagaStatus |
sagaStatus |
Constructor and Description |
---|
SagaStatusChanged() |
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 SagaStatus sagaStatus
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.