Interface SagaCompensationAction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SagaCompensationAction
Compensation action invoked when a completed step must be compensated.
  • Method Details

    • compensate

      SagaCompensationResult compensate(TransactionContext context, SagaCommand command)
      Executes compensation with propagated context.
      Parameters:
      context - transaction/correlation context for compensation
      command - command payload and redacted metadata
      Returns:
      safe compensation result