public class TransactedDefinition extends OutputDefinition<TransactedDefinition>
Modifier and Type | Field and Description |
---|---|
static String |
PROPAGATION_REQUIRED |
protected String |
ref |
protected Class<? extends Policy> |
type |
outputs
inheritErrorHandler, log
Constructor and Description |
---|
TransactedDefinition() |
TransactedDefinition(Policy policy) |
Modifier and Type | Method and Description |
---|---|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
protected String |
description() |
protected static Policy |
doResolvePolicy(RouteContext routeContext,
String ref,
Class<? extends Policy> type) |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
String |
getRef() |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images
|
boolean |
isAbstract()
Whether this model is abstract or not.
|
TransactedDefinition |
ref(String ref)
Sets a reference to use for lookup the policy in the registry.
|
protected Policy |
resolvePolicy(RouteContext routeContext) |
void |
setRef(String ref) |
void |
setType(Class<? extends Policy> type)
Sets a policy type that this definition should scope within.
|
String |
toString() |
getOutputs, isOutputSupported, setOutputs
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, enrich, enrich, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isInheritErrorHandler, loadBalance, loadBalance, log, log, log, log, loop, loop, loop, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, preCreateProcessor, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperty, resequence, resequence, resolveKnownConstantFields, resolvePropertyPlaceholders, rollback, rollback, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, stop, threads, threads, threads, threads, throttle, throttle, throwException, to, to, to, to, to, to, to, to, to, to, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId
public static final String PROPAGATION_REQUIRED
protected String ref
public TransactedDefinition()
public TransactedDefinition(Policy policy)
public String toString()
toString
in class OutputDefinition<TransactedDefinition>
protected String description()
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OutputDefinition<TransactedDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<TransactedDefinition>
public boolean isAbstract()
ProcessorDefinition
isAbstract
in class ProcessorDefinition<TransactedDefinition>
public String getRef()
public void setRef(String ref)
public void setType(Class<? extends 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 referencepublic Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<TransactedDefinition>
Exception
protected Policy resolvePolicy(RouteContext routeContext)
protected static Policy doResolvePolicy(RouteContext routeContext, String ref, Class<? extends Policy> type)
Apache Camel