Class DurableEvaluator.Settings

Object
akka.javasdk.evaluation.DurableEvaluator.Settings
Enclosing class:
DurableEvaluator<S>

public static final class DurableEvaluator.Settings extends Object
Settings for a durable evaluator. Unset values fall back to the runtime defaults.

Failures are always terminal: when a step exhausts its retries, or the evaluation timeout expires, a failed evaluation is recorded and the instance is cleaned up.

  • Method Details

    • defaults

      public static DurableEvaluator.Settings defaults()
      Settings with all values falling back to the runtime defaults.
    • withEvaluationTimeout

      public DurableEvaluator.Settings withEvaluationTimeout(Duration timeout)
      Maximum duration of the entire evaluation. When it expires, a failed evaluation is recorded and the instance is cleaned up.
    • withDefaultStepTimeout

      public DurableEvaluator.Settings withDefaultStepTimeout(Duration timeout)
      Default timeout for each step of the evaluation.
    • withMaxStepRetries

      public DurableEvaluator.Settings withMaxStepRetries(int maxRetries)
      Number of retries for a failed step. Once retries are exhausted, a failed evaluation is recorded and the instance is cleaned up.
    • evaluationTimeout

      public Optional<Duration> evaluationTimeout()
    • defaultStepTimeout

      public Optional<Duration> defaultStepTimeout()
    • maxStepRetries

      public Optional<Integer> maxStepRetries()