public class InMemorySagaCoordinator extends Object implements org.apache.camel.saga.CamelSagaCoordinator
Constructor and Description |
---|
InMemorySagaCoordinator(org.apache.camel.CamelContext camelContext,
InMemorySagaService sagaService,
String sagaId) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
beginStep(org.apache.camel.Exchange exchange,
org.apache.camel.saga.CamelSagaStep step) |
CompletableFuture<Void> |
compensate() |
CompletableFuture<Void> |
complete() |
CompletableFuture<Boolean> |
doCompensate() |
CompletableFuture<Boolean> |
doComplete() |
CompletableFuture<Boolean> |
doFinalize(Function<org.apache.camel.saga.CamelSagaStep,Optional<org.apache.camel.Endpoint>> endpointExtractor,
String description) |
String |
getId() |
public InMemorySagaCoordinator(org.apache.camel.CamelContext camelContext, InMemorySagaService sagaService, String sagaId)
public String getId()
getId
in interface org.apache.camel.spi.HasId
public CompletableFuture<Void> beginStep(org.apache.camel.Exchange exchange, org.apache.camel.saga.CamelSagaStep step)
beginStep
in interface org.apache.camel.saga.CamelSagaCoordinator
public CompletableFuture<Void> compensate()
compensate
in interface org.apache.camel.saga.CamelSagaCoordinator
public CompletableFuture<Void> complete()
complete
in interface org.apache.camel.saga.CamelSagaCoordinator
public CompletableFuture<Boolean> doCompensate()
public CompletableFuture<Boolean> doComplete()
public CompletableFuture<Boolean> doFinalize(Function<org.apache.camel.saga.CamelSagaStep,Optional<org.apache.camel.Endpoint>> endpointExtractor, String description)
Apache Camel