Class InMemorySagaCoordinator

  • All Implemented Interfaces:
    org.apache.camel.saga.CamelSagaCoordinator, org.apache.camel.spi.HasId

    public class InMemorySagaCoordinator
    extends Object
    implements org.apache.camel.saga.CamelSagaCoordinator
    A in-memory implementation of a saga coordinator.
    • Constructor Detail

      • InMemorySagaCoordinator

        public InMemorySagaCoordinator​(org.apache.camel.CamelContext camelContext,
                                       InMemorySagaService sagaService,
                                       String sagaId)
    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.camel.spi.HasId
      • beginStep

        public CompletableFuture<Void> beginStep​(org.apache.camel.Exchange exchange,
                                                 org.apache.camel.saga.CamelSagaStep step)
        Specified by:
        beginStep in interface org.apache.camel.saga.CamelSagaCoordinator
      • compensate

        public CompletableFuture<Void> compensate()
        Specified by:
        compensate in interface org.apache.camel.saga.CamelSagaCoordinator
      • complete

        public CompletableFuture<Void> complete()
        Specified by:
        complete in interface org.apache.camel.saga.CamelSagaCoordinator