Class WarehouseSagaOrchestrator
java.lang.Object
app.ductape.sdk.warehouse.transactions.WarehouseSagaOrchestrator
TS parity: sdk/ts/src/warehouse/transactions/saga-orchestrator.ts (synchronous).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWarehouseSagaOrchestrator(WarehouseSagaOrchestrator.StepExecutor executor, Long defaultTimeoutMs) WarehouseSagaOrchestrator(WarehouseSagaOrchestrator.StepExecutor executor, Long defaultTimeoutMs, WarehouseTypes.SagaStateHooks sagaHooks) -
Method Summary
Modifier and TypeMethodDescriptionTSgetState(sagaId)— snapshot from the in-flight saga only (cleared whenexecutefinishes).TS parity:resume(sagaId)—compensatingruns persisted rollback steps; terminal statuses return a result-shaped map;executingreturns loaded snapshot (TS simplified path).
-
Field Details
-
STATE_ID
- See Also:
-
STATE_STATUS
- See Also:
-
STATE_STEP_RESULTS
- See Also:
-
STATE_STARTED_AT
- See Also:
-
STATE_ROLLBACK_STEPS
- See Also:
-
STATE_ON_FAILURE
- See Also:
-
STATE_ERROR_MESSAGE
- See Also:
-
-
Constructor Details
-
WarehouseSagaOrchestrator
public WarehouseSagaOrchestrator(WarehouseSagaOrchestrator.StepExecutor executor, Long defaultTimeoutMs) -
WarehouseSagaOrchestrator
public WarehouseSagaOrchestrator(WarehouseSagaOrchestrator.StepExecutor executor, Long defaultTimeoutMs, WarehouseTypes.SagaStateHooks sagaHooks)
-
-
Method Details
-
getState
TSgetState(sagaId)— snapshot from the in-flight saga only (cleared whenexecutefinishes). -
resume
TS parity:resume(sagaId)—compensatingruns persisted rollback steps; terminal statuses return a result-shaped map;executingreturns loaded snapshot (TS simplified path). -
execute
-