Annotation Interface SagaDefinition


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface SagaDefinition
Declares a class as a saga definition holder.

Managed hosting requires an actual durable saga factory and its policy. The version and verified artifact identify the exact definition allowed to resume persisted runs. This does not create an XA transaction or roll back arbitrary external effects.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the saga name.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Selects a finite trusted host policy, never a remote endpoint or credential.
    int
    Returns the positive durable definition version.
  • Element Details

    • name

      String name
      Returns the saga name.
      Returns:
      logical saga name
    • version

      int version
      Returns the positive durable definition version.
      Returns:
      definition version
      Default:
      1
    • policy

      String policy
      Selects a finite trusted host policy, never a remote endpoint or credential.
      Returns:
      registered profile name
      Default:
      "default"