Annotation Interface SagaStep


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface SagaStep
Declares a method as a saga step in an annotation-derived descriptor.

A trusted managed saga factory persists intent before the callback and preserves its external idempotency key across takeover. Non-idempotent uncertainty requires reconciliation.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the step name.
    int
    Returns the zero-based step order.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Declares that the handler honors the context's stable external key on replay.
  • Element Details

    • name

      String name
      Returns the step name.
      Returns:
      stable step name
    • order

      int order
      Returns the zero-based step order.
      Returns:
      step order
    • idempotent

      boolean idempotent
      Declares that the handler honors the context's stable external key on replay. This is an application protocol obligation, not automatic exactly-once external execution.
      Returns:
      whether safe keyed replay is supported
      Default:
      false