@Metadata(label="configuration") public class TransactedDefinition extends OutputDefinition<TransactedDefinition>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPAGATION_REQUIRED |
protected String |
ref |
protected Class<? extends org.apache.camel.spi.Policy> |
type |
outputsinheritErrorHandler, log| Constructor and Description |
|---|
TransactedDefinition() |
TransactedDefinition(org.apache.camel.spi.Policy policy) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
description() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind
of expression node
|
org.apache.camel.spi.Policy |
getPolicy() |
String |
getRef() |
String |
getShortName() |
Class<? extends org.apache.camel.spi.Policy> |
getType() |
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.
|
TransactedDefinition |
ref(String ref)
Sets a reference to use for lookup the policy in the registry.
|
void |
setRef(String ref) |
void |
setType(Class<? extends org.apache.camel.spi.Policy> type)
Sets a policy type that this definition should scope within.
|
String |
toString() |
getOutputs, setOutputsaddInterceptStrategy, 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, wireTapdescription, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptionspublic static final String PROPAGATION_REQUIRED
public TransactedDefinition()
public TransactedDefinition(org.apache.camel.spi.Policy policy)
public String toString()
toString in class OutputDefinition<TransactedDefinition>protected String description()
public String getShortName()
getShortName in interface org.apache.camel.NamedNodegetShortName in class OutputDefinition<TransactedDefinition>public String getLabel()
ProcessorDefinitiongetLabel in interface org.apache.camel.NamedNodegetLabel in class ProcessorDefinition<TransactedDefinition>public boolean isAbstract()
ProcessorDefinitionisAbstract in class ProcessorDefinition<TransactedDefinition>public boolean isTopLevelOnly()
ProcessorDefinitionProcessorDefinition.addOutput(ProcessorDefinition) method.isTopLevelOnly in class ProcessorDefinition<TransactedDefinition>public boolean isWrappingEntireOutput()
ProcessorDefinitionisWrappingEntireOutput in class ProcessorDefinition<TransactedDefinition>public org.apache.camel.spi.Policy getPolicy()
public void setType(Class<? extends org.apache.camel.spi.Policy> type)
TransactedPolicy
can be set as type for easy transaction configuration.
Will by default scope to the wide Policytype - the policy typepublic TransactedDefinition ref(String ref)
ref - the referenceApache Camel