@Metadata(label="eip,endpoint,routing") public class ToDynamicDefinition extends NoOutputDefinition<ToDynamicDefinition>
inheritErrorHandler, log
Constructor and Description |
---|
ToDynamicDefinition() |
ToDynamicDefinition(String uri) |
Modifier and Type | Method and Description |
---|---|
ToDynamicDefinition |
cacheSize(int cacheSize)
Sets the maximum size used by the
ConsumerCache which is used to cache and reuse producers. |
protected Expression |
createExpression(RouteContext routeContext) |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
Integer |
getCacheSize() |
Boolean |
getIgnoreInvalidEndpoint() |
ExchangePattern |
getPattern() |
String |
getUri() |
ToDynamicDefinition |
ignoreInvalidEndpoint()
Ignore the invalidate endpoint exception when try to create a producer with that endpoint
|
ToDynamicDefinition |
pattern(ExchangePattern pattern)
Sets the optional
ExchangePattern used to invoke this endpoint |
void |
setCacheSize(Integer cacheSize) |
void |
setIgnoreInvalidEndpoint(Boolean ignoreInvalidEndpoint) |
void |
setPattern(ExchangePattern pattern) |
void |
setUri(String uri)
The uri of the endpoint to send to.
|
String |
toString() |
getOutputs, isOutputSupported
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getLabel, getOtherAttributes, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, loadBalance, loadBalance, log, log, 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, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, preCreateProcessor, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, script, script, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId
public ToDynamicDefinition()
public ToDynamicDefinition(String uri)
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ToDynamicDefinition>
Exception
protected Expression createExpression(RouteContext routeContext)
public ToDynamicDefinition pattern(ExchangePattern pattern)
ExchangePattern
used to invoke this endpointpublic ToDynamicDefinition cacheSize(int cacheSize)
ConsumerCache
which is used to cache and reuse producers.cacheSize
- the cache size, use 0 for default cache size, or -1 to turn cache off.public ToDynamicDefinition ignoreInvalidEndpoint()
public void setUri(String uri)
SimpleLanguage
expression.public ExchangePattern getPattern()
public void setPattern(ExchangePattern pattern)
public Integer getCacheSize()
public void setCacheSize(Integer cacheSize)
public Boolean getIgnoreInvalidEndpoint()
public void setIgnoreInvalidEndpoint(Boolean ignoreInvalidEndpoint)
Apache Camel