@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 |
outputs
inheritErrorHandler, 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
|
List<ProcessorDefinition<?>> |
getOutputs() |
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 |
setOutputs(List<ProcessorDefinition<?>> outputs) |
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() |
addInterceptStrategy, 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, kamelet, 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, 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, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
public static final String PROPAGATION_REQUIRED
protected Class<? extends org.apache.camel.spi.Policy> type
protected String ref
public TransactedDefinition()
public TransactedDefinition(org.apache.camel.spi.Policy policy)
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class OutputDefinition<TransactedDefinition>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
setOutputs
in class OutputDefinition<TransactedDefinition>
public String toString()
toString
in class OutputDefinition<TransactedDefinition>
protected String description()
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
getShortName
in class OutputDefinition<TransactedDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ProcessorDefinition<TransactedDefinition>
public boolean isAbstract()
ProcessorDefinition
isAbstract
in class ProcessorDefinition<TransactedDefinition>
public boolean isTopLevelOnly()
ProcessorDefinition
ProcessorDefinition.addOutput(ProcessorDefinition)
method.isTopLevelOnly
in class ProcessorDefinition<TransactedDefinition>
public boolean isWrappingEntireOutput()
ProcessorDefinition
isWrappingEntireOutput
in class ProcessorDefinition<TransactedDefinition>
public org.apache.camel.spi.Policy getPolicy()
public String getRef()
public void setRef(String ref)
public Class<? extends org.apache.camel.spi.Policy> getType()
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 Policy
type
- the policy typepublic TransactedDefinition ref(String ref)
ref
- the referenceApache Camel