public abstract class SagaProcessor extends DelegateAsyncProcessor
Modifier and Type | Field and Description |
---|---|
protected CamelContext |
camelContext |
protected SagaCompletionMode |
completionMode |
protected CamelSagaService |
sagaService |
protected CamelSagaStep |
step |
processor
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
SagaProcessor(CamelContext camelContext,
Processor childProcessor,
CamelSagaService sagaService,
SagaCompletionMode completionMode,
CamelSagaStep step) |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<CamelSagaCoordinator> |
getCurrentSagaCoordinator(Exchange exchange) |
CamelSagaService |
getSagaService() |
protected void |
handleSagaCompletion(Exchange exchange,
CamelSagaCoordinator coordinator,
CamelSagaCoordinator previousCoordinator,
AsyncCallback callback) |
protected void |
ifNotException(Throwable ex,
Exchange exchange,
AsyncCallback callback,
Runnable code) |
protected void |
ifNotException(Throwable ex,
Exchange exchange,
boolean handleCompletion,
CamelSagaCoordinator coordinator,
CamelSagaCoordinator previousCoordinator,
AsyncCallback callback,
Runnable code) |
protected void |
setCurrentSagaCoordinator(Exchange exchange,
CamelSagaCoordinator coordinator) |
String |
toString() |
doShutdown, doStart, doStop, getProcessor, hasNext, next, process, process, processNext, setProcessor, setProcessor
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected CamelContext camelContext
protected CamelSagaService sagaService
protected CamelSagaStep step
protected SagaCompletionMode completionMode
public SagaProcessor(CamelContext camelContext, Processor childProcessor, CamelSagaService sagaService, SagaCompletionMode completionMode, CamelSagaStep step)
protected CompletableFuture<CamelSagaCoordinator> getCurrentSagaCoordinator(Exchange exchange)
protected void setCurrentSagaCoordinator(Exchange exchange, CamelSagaCoordinator coordinator)
protected void handleSagaCompletion(Exchange exchange, CamelSagaCoordinator coordinator, CamelSagaCoordinator previousCoordinator, AsyncCallback callback)
public CamelSagaService getSagaService()
public String toString()
toString
in class DelegateAsyncProcessor
protected void ifNotException(Throwable ex, Exchange exchange, AsyncCallback callback, Runnable code)
protected void ifNotException(Throwable ex, Exchange exchange, boolean handleCompletion, CamelSagaCoordinator coordinator, CamelSagaCoordinator previousCoordinator, AsyncCallback callback, Runnable code)
Apache Camel