@Metadata(label="eip,routing") public class SagaDefinition extends OutputDefinition<SagaDefinition>
outputsinheritErrorHandler, log| Constructor and Description |
|---|
SagaDefinition() |
| Modifier and Type | Method and Description |
|---|---|
SagaDefinition |
compensation(String compensation) |
SagaDefinition |
completion(String completion) |
SagaDefinition |
completionMode(SagaCompletionMode completionMode) |
SagaDefinition |
completionMode(String completionMode) |
protected String |
description() |
SagaActionUriDefinition |
getCompensation() |
SagaActionUriDefinition |
getCompletion() |
String |
getCompletionMode() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind
of expression node
|
List<SagaOptionDefinition> |
getOptions() |
String |
getPropagation() |
org.apache.camel.saga.CamelSagaService |
getSagaService() |
String |
getSagaServiceRef() |
String |
getTimeout() |
String |
getTimeoutInMilliseconds() |
boolean |
isAbstract()
Whether this model is abstract or not.
|
boolean |
isTopLevelOnly()
Whether this definition can only be added as top-level directly on the
route itself (such as onException,onCompletion,intercept, etc.)
If trying to add a top-level only definition to a nested output would
fail in the
ProcessorDefinition.addOutput(ProcessorDefinition) method. |
boolean |
isWrappingEntireOutput()
Whether this definition is wrapping the entire output.
|
SagaDefinition |
option(String option,
org.apache.camel.Expression expression) |
SagaDefinition |
propagation(SagaPropagation propagation) |
SagaDefinition |
propagation(String propagation) |
SagaDefinition |
sagaService(org.apache.camel.saga.CamelSagaService sagaService) |
SagaDefinition |
sagaServiceRef(String sagaServiceRef) |
void |
setCompensation(SagaActionUriDefinition compensation)
The compensation endpoint URI that must be called to compensate all
changes done in the route.
|
void |
setCompletion(SagaActionUriDefinition completion)
The completion endpoint URI that will be called when the Saga is
completed successfully.
|
void |
setCompletionMode(String completionMode)
Determine how the saga should be considered complete.
|
void |
setOptions(List<SagaOptionDefinition> options)
Allows to save properties of the current exchange in order to re-use them
in a compensation/completion callback route.
|
void |
setOutputs(List<ProcessorDefinition<?>> outputs) |
void |
setPropagation(String propagation)
Set the Saga propagation mode (REQUIRED, REQUIRES_NEW, MANDATORY,
SUPPORTS, NOT_SUPPORTED, NEVER).
|
void |
setSagaService(org.apache.camel.saga.CamelSagaService sagaService) |
void |
setSagaServiceRef(String sagaServiceRef)
Refers to the id to lookup in the registry for the specific CamelSagaService to use.
|
void |
setTimeout(String timeout)
Set the maximum amount of time for the Saga.
|
void |
setTimeoutInMilliseconds(String timeoutInMilliseconds)
Set the maximum amount of time for the Saga.
|
SagaDefinition |
timeout(Duration duration) |
SagaDefinition |
timeout(long timeout,
TimeUnit unit) |
SagaDefinition |
timeout(String duration) |
String |
toString() |
getOutputs, getShortNameaddInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isInheritErrorHandler, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTapdescription, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setIdpublic SagaDefinition()
public void setOutputs(List<ProcessorDefinition<?>> outputs)
setOutputs in class OutputDefinition<SagaDefinition>public boolean isAbstract()
ProcessorDefinitionisAbstract in class ProcessorDefinition<SagaDefinition>public boolean isTopLevelOnly()
ProcessorDefinitionProcessorDefinition.addOutput(ProcessorDefinition) method.isTopLevelOnly in class ProcessorDefinition<SagaDefinition>public boolean isWrappingEntireOutput()
ProcessorDefinitionisWrappingEntireOutput in class ProcessorDefinition<SagaDefinition>public String getLabel()
ProcessorDefinitiongetLabel in interface org.apache.camel.NamedNodegetLabel in class ProcessorDefinition<SagaDefinition>public String toString()
toString in class OutputDefinition<SagaDefinition>public SagaActionUriDefinition getCompensation()
public void setCompensation(SagaActionUriDefinition compensation)
public SagaActionUriDefinition getCompletion()
public void setCompletion(SagaActionUriDefinition completion)
public String getPropagation()
public void setPropagation(String propagation)
public String getCompletionMode()
public void setCompletionMode(String completionMode)
public org.apache.camel.saga.CamelSagaService getSagaService()
public void setSagaService(org.apache.camel.saga.CamelSagaService sagaService)
public String getSagaServiceRef()
public void setSagaServiceRef(String sagaServiceRef)
public List<SagaOptionDefinition> getOptions()
public void setOptions(List<SagaOptionDefinition> options)
public String getTimeout()
public void setTimeout(String timeout)
public String getTimeoutInMilliseconds()
public void setTimeoutInMilliseconds(String timeoutInMilliseconds)
public SagaDefinition compensation(String compensation)
public SagaDefinition completion(String completion)
public SagaDefinition propagation(String propagation)
public SagaDefinition propagation(SagaPropagation propagation)
public SagaDefinition sagaService(org.apache.camel.saga.CamelSagaService sagaService)
public SagaDefinition sagaServiceRef(String sagaServiceRef)
public SagaDefinition completionMode(SagaCompletionMode completionMode)
public SagaDefinition completionMode(String completionMode)
public SagaDefinition option(String option, org.apache.camel.Expression expression)
public SagaDefinition timeout(Duration duration)
public SagaDefinition timeout(long timeout, TimeUnit unit)
public SagaDefinition timeout(String duration)
protected String description()
Apache Camel