Annotation Interface Compensation
Declares a method as compensation for a named saga step.
Compensation is best-effort application logic. The annotation must not be interpreted as automatic rollback of external side effects.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDeclares keyed replay support for the compensation's external effect.
-
Element Details
-
step
-
idempotent
boolean idempotentDeclares keyed replay support for the compensation's external effect.- Returns:
- whether the original stable compensation key is honored on retry/takeover
- Default:
false
-