@Metadata(label="eip,transformation") public class PollEnrichDefinition extends ExpressionNode
Enricher
inheritErrorHandler, log
Constructor and Description |
---|
PollEnrichDefinition() |
PollEnrichDefinition(org.apache.camel.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(org.apache.camel.AggregationStrategy aggregationStrategy)
Sets the AggregationStrategy to be used to merge the reply from the
external service, into a single outgoing message.
|
PollEnrichDefinition |
aggregationStrategy(Supplier<org.apache.camel.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. |
Boolean |
getAggregateOnException() |
org.apache.camel.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
|
String |
getShortName() |
Long |
getTimeout() |
PollEnrichDefinition |
ignoreInvalidEndpoint()
Ignore the invalidate endpoint exception when try to create a producer
with that endpoint
|
void |
setAggregateOnException(Boolean aggregateOnException) |
void |
setAggregationStrategy(org.apache.camel.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() |
configureChild, getExpression, getOutputs, id, preCreateProcessor, setExpression
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, attribute, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, 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, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, 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, 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, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
public PollEnrichDefinition()
public PollEnrichDefinition(org.apache.camel.AggregationStrategy aggregationStrategy, long timeout)
public String getShortName()
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ExpressionNode
public PollEnrichDefinition timeout(long timeout)
public PollEnrichDefinition aggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy)
public PollEnrichDefinition aggregationStrategy(Supplier<org.apache.camel.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 ExpressionNode
public 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 org.apache.camel.AggregationStrategy getAggregationStrategy()
public void setAggregationStrategy(org.apache.camel.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