@Metadata(label="eip,routing") public class SagaDefinition extends OutputDefinition<SagaDefinition>
outputs
inheritErrorHandler, log
Constructor and Description |
---|
SagaDefinition() |
Modifier and Type | Method and Description |
---|---|
SagaDefinition |
compensation(String compensation) |
SagaDefinition |
completion(String completion) |
SagaDefinition |
completionMode(SagaCompletionMode completionMode) |
protected String |
description() |
SagaActionUriDefinition |
getCompensation() |
SagaActionUriDefinition |
getCompletion() |
SagaCompletionMode |
getCompletionMode() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind
of expression node
|
List<SagaOptionDefinition> |
getOptions() |
SagaPropagation |
getPropagation() |
org.apache.camel.saga.CamelSagaService |
getSagaService() |
Long |
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 |
sagaService(org.apache.camel.saga.CamelSagaService sagaService) |
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(SagaCompletionMode 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 |
setPropagation(SagaPropagation propagation)
Set the Saga propagation mode (REQUIRED, REQUIRES_NEW, MANDATORY,
SUPPORTS, NOT_SUPPORTED, NEVER).
|
void |
setSagaService(org.apache.camel.saga.CamelSagaService sagaService) |
void |
setTimeoutInMilliseconds(Long timeoutInMilliseconds)
Set the maximum amount of time for the Saga.
|
SagaDefinition |
timeout(long timeout,
TimeUnit unit) |
String |
toString() |
getOutputs, getShortName, setOutputs
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, attribute, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, 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, placeholder, 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, 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, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setParent, 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, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
public SagaDefinition()
public boolean isAbstract()
ProcessorDefinition
isAbstract
in class ProcessorDefinition<SagaDefinition>
public boolean isTopLevelOnly()
ProcessorDefinition
ProcessorDefinition.addOutput(ProcessorDefinition)
method.isTopLevelOnly
in class ProcessorDefinition<SagaDefinition>
public boolean isWrappingEntireOutput()
ProcessorDefinition
isWrappingEntireOutput
in class ProcessorDefinition<SagaDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
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 SagaPropagation getPropagation()
public void setPropagation(SagaPropagation propagation)
public SagaCompletionMode getCompletionMode()
public void setCompletionMode(SagaCompletionMode completionMode)
public org.apache.camel.saga.CamelSagaService getSagaService()
public void setSagaService(org.apache.camel.saga.CamelSagaService sagaService)
public List<SagaOptionDefinition> getOptions()
public void setOptions(List<SagaOptionDefinition> options)
public Long getTimeoutInMilliseconds()
public void setTimeoutInMilliseconds(Long timeoutInMilliseconds)
public SagaDefinition compensation(String compensation)
public SagaDefinition completion(String completion)
public SagaDefinition propagation(SagaPropagation propagation)
public SagaDefinition sagaService(org.apache.camel.saga.CamelSagaService sagaService)
public SagaDefinition completionMode(SagaCompletionMode completionMode)
public SagaDefinition option(String option, org.apache.camel.Expression expression)
public SagaDefinition timeout(long timeout, TimeUnit unit)
protected String description()
Apache Camel