@Metadata(label="eip,transformation") public class PollEnrichDefinition extends NoOutputExpressionNode
EnricherinheritErrorHandler, log| Constructor and Description |
|---|
PollEnrichDefinition() |
PollEnrichDefinition(AggregationStrategy aggregationStrategy,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
PollEnrichDefinition |
aggregateOnException(boolean aggregateOnException)
If this option is false then the aggregate method is not used if there was an exception thrown while trying
to retrieve the data to enrich from the resource.
|
PollEnrichDefinition |
aggregationStrategy(AggregationStrategy aggregationStrategy)
Sets the AggregationStrategy to be used to merge the reply from the external service, into a single outgoing message.
|
PollEnrichDefinition |
aggregationStrategyMethodAllowNull(boolean aggregationStrategyMethodAllowNull)
If this option is false then the aggregate method is not used if there was no data to enrich.
|
PollEnrichDefinition |
aggregationStrategyMethodName(String aggregationStrategyMethodName)
This option can be used to explicit declare the method name to use, when using POJOs as the AggregationStrategy.
|
PollEnrichDefinition |
aggregationStrategyRef(String aggregationStrategyRef)
Refers to an AggregationStrategy to be used to merge the reply from the external service, into a single outgoing message.
|
PollEnrichDefinition |
cacheSize(int cacheSize)
Sets the maximum size used by the
ConsumerCache which is used
to cache and reuse consumers when uris are reused. |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
Boolean |
getAggregateOnException() |
AggregationStrategy |
getAggregationStrategy() |
Boolean |
getAggregationStrategyMethodAllowNull() |
String |
getAggregationStrategyMethodName() |
String |
getAggregationStrategyRef() |
Integer |
getCacheSize() |
Boolean |
getIgnoreInvalidEndpoint() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
Long |
getTimeout() |
PollEnrichDefinition |
ignoreInvalidEndpoint()
Ignore the invalidate endpoint exception when try to create a producer with that endpoint
|
void |
setAggregateOnException(Boolean aggregateOnException) |
void |
setAggregationStrategy(AggregationStrategy aggregationStrategy) |
void |
setAggregationStrategyMethodAllowNull(Boolean aggregationStrategyMethodAllowNull) |
void |
setAggregationStrategyMethodName(String aggregationStrategyMethodName) |
void |
setAggregationStrategyRef(String aggregationStrategyRef) |
void |
setCacheSize(Integer cacheSize) |
void |
setExpression(ExpressionDefinition expression)
Expression that computes the endpoint uri to use as the resource endpoint to enrich from
|
void |
setIgnoreInvalidEndpoint(Boolean ignoreInvalidEndpoint) |
void |
setTimeout(Long timeout) |
PollEnrichDefinition |
timeout(long timeout)
Timeout in millis when polling from the external service.
|
String |
toString() |
addOutput, getOutputs, id, isOutputSupportedconfigureChild, createFilterProcessor, createPredicate, getExpression, preCreateProcessor, setOutputsaddInterceptStrategies, addInterceptStrategy, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, 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, getOtherAttributes, getParent, hystrix, 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, loopDoWhile, 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, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, process, 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, serviceCall, serviceCall, serviceCall, 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, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessordescription, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setIdpublic PollEnrichDefinition()
public PollEnrichDefinition(AggregationStrategy aggregationStrategy, long timeout)
public String getLabel()
ProcessorDefinitiongetLabel in interface NamedNodegetLabel in class ExpressionNodepublic Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinitioncreateProcessor in class ProcessorDefinition<ExpressionNode>Exceptionpublic PollEnrichDefinition timeout(long timeout)
public PollEnrichDefinition aggregationStrategy(AggregationStrategy aggregationStrategy)
public PollEnrichDefinition aggregationStrategyRef(String aggregationStrategyRef)
public PollEnrichDefinition aggregationStrategyMethodName(String aggregationStrategyMethodName)
public PollEnrichDefinition aggregationStrategyMethodAllowNull(boolean aggregationStrategyMethodAllowNull)
public PollEnrichDefinition aggregateOnException(boolean aggregateOnException)
public PollEnrichDefinition cacheSize(int cacheSize)
ConsumerCache which is used
to cache and reuse consumers when uris are reused.cacheSize - the cache size, use 0 for default cache size, or -1 to turn cache off.public PollEnrichDefinition ignoreInvalidEndpoint()
public void setExpression(ExpressionDefinition expression)
setExpression in class ExpressionNodepublic Long getTimeout()
public void setTimeout(Long timeout)
public String getAggregationStrategyRef()
public void setAggregationStrategyRef(String aggregationStrategyRef)
public String getAggregationStrategyMethodName()
public void setAggregationStrategyMethodName(String aggregationStrategyMethodName)
public Boolean getAggregationStrategyMethodAllowNull()
public void setAggregationStrategyMethodAllowNull(Boolean aggregationStrategyMethodAllowNull)
public AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(AggregationStrategy aggregationStrategy)
public Boolean getAggregateOnException()
public void setAggregateOnException(Boolean aggregateOnException)
public Integer getCacheSize()
public void setCacheSize(Integer cacheSize)
public Boolean getIgnoreInvalidEndpoint()
public void setIgnoreInvalidEndpoint(Boolean ignoreInvalidEndpoint)
Apache Camel