Package org.apache.camel.saga
Class InMemorySagaCoordinator
java.lang.Object
org.apache.camel.saga.InMemorySagaCoordinator
- All Implemented Interfaces:
CamelSagaCoordinator,org.apache.camel.spi.HasId
A in-memory implementation of a saga coordinator.
-
Constructor Summary
ConstructorsConstructorDescriptionInMemorySagaCoordinator(org.apache.camel.CamelContext camelContext, InMemorySagaService sagaService, String sagaId) -
Method Summary
Modifier and TypeMethodDescriptionbeginStep(org.apache.camel.Exchange exchange, CamelSagaStep step) complete()doFinalize(Function<CamelSagaStep, Optional<org.apache.camel.Endpoint>> endpointExtractor, String description) getId()
-
Constructor Details
-
InMemorySagaCoordinator
public InMemorySagaCoordinator(org.apache.camel.CamelContext camelContext, InMemorySagaService sagaService, String sagaId)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.apache.camel.spi.HasId
-
beginStep
- Specified by:
beginStepin interfaceCamelSagaCoordinator
-
compensate
- Specified by:
compensatein interfaceCamelSagaCoordinator
-
complete
- Specified by:
completein interfaceCamelSagaCoordinator
-
doCompensate
-
doComplete
-
doFinalize
public CompletableFuture<Boolean> doFinalize(Function<CamelSagaStep, Optional<org.apache.camel.Endpoint>> endpointExtractor, String description)
-