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.
Compensation action invoked when a completed step must be compensated.
-
Method Summary
Modifier and TypeMethodDescriptioncompensate(TransactionContext context, SagaCommand command) Executes compensation with propagated context.
-
Method Details
-
compensate
Executes compensation with propagated context.- Parameters:
context- transaction/correlation context for compensationcommand- command payload and redacted metadata- Returns:
- safe compensation result
-