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