Package akka.javasdk.evaluation
Interface DurableEvaluator.Effect.PersistenceEffectBuilder<S>
- Enclosing interface:
DurableEvaluator.Effect
public static interface DurableEvaluator.Effect.PersistenceEffectBuilder<S>
Effect builder after the state was updated, for defining the follow-up transition.
-
Method Summary
Modifier and TypeMethodDescriptioncomplete(Evaluation evaluation) Complete the evaluation with its verdict.inconclusive(String reason) Report that the evaluation was inconclusive: it ran but could not reach a verdict.transitionTo(akka.japi.function.Function<W, DurableEvaluator.Effect> methodRef) Defines the next step to which the evaluation should transition to.transitionTo(akka.japi.function.Function2<W, I, DurableEvaluator.Effect> methodRef) Defines the next step to which the evaluation should transition to, with an input parameter.
-
Method Details
-
transitionTo
<W> DurableEvaluator.Effect transitionTo(akka.japi.function.Function<W, DurableEvaluator.Effect> methodRef) Defines the next step to which the evaluation should transition to.- Type Parameters:
W- The evaluator type containing the step method- Parameters:
methodRef- Reference to the step method
-
transitionTo
<W,I> DurableEvaluator.WithInput<I,DurableEvaluator.Effect> transitionTo(akka.japi.function.Function2<W, I, DurableEvaluator.Effect> methodRef) Defines the next step to which the evaluation should transition to, with an input parameter.- Type Parameters:
W- The evaluator type containing the step methodI- The input parameter type for the step- Parameters:
methodRef- Reference to the step method- Returns:
- A builder to provide the input parameter
-
complete
Complete the evaluation with its verdict. The outcome is recorded and the evaluation instance is cleaned up.- Parameters:
evaluation- the evaluation outcome
-
inconclusive
Report that the evaluation was inconclusive: it ran but could not reach a verdict.- Parameters:
reason- why the evaluation was inconclusive
-