public class InMemorySagaCoordinator extends Object implements 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,
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) |
String |
getId() |
public InMemorySagaCoordinator(org.apache.camel.CamelContext camelContext,
InMemorySagaService sagaService,
String sagaId)
public String getId()
getId in interface org.apache.camel.spi.HasIdpublic CompletableFuture<Void> beginStep(org.apache.camel.Exchange exchange, CamelSagaStep step)
beginStep in interface CamelSagaCoordinatorpublic CompletableFuture<Void> compensate()
compensate in interface CamelSagaCoordinatorpublic CompletableFuture<Void> complete()
complete in interface CamelSagaCoordinatorpublic CompletableFuture<Boolean> doCompensate()
public CompletableFuture<Boolean> doComplete()
public CompletableFuture<Boolean> doFinalize(Function<CamelSagaStep,Optional<org.apache.camel.Endpoint>> endpointExtractor, String description)
Apache Camel