public abstract class ProcessorDefinition<Type extends ProcessorDefinition<Type>> extends OptionalIdentifiedDefinition<Type> implements Block, OtherAttributesAware
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
inheritErrorHandler |
protected org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
ProcessorDefinition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptStrategy(org.apache.camel.spi.InterceptStrategy strategy) |
void |
addOutput(ProcessorDefinition<?> output)
Adds the given definition as output to this block
|
ExpressionClause<AggregateDefinition> |
aggregate()
Aggregator EIP:
Creates an aggregator allowing you to combine a number of messages
together into a single message.
|
ExpressionClause<AggregateDefinition> |
aggregate(org.apache.camel.AggregationStrategy aggregationStrategy)
Aggregator EIP:
Creates an aggregator allowing you to combine a number of messages
together into a single message.
|
AggregateDefinition |
aggregate(org.apache.camel.Expression correlationExpression)
Aggregator EIP:
Creates an aggregator allowing you to combine a number of messages
together into a single message.
|
AggregateDefinition |
aggregate(org.apache.camel.Expression correlationExpression,
org.apache.camel.AggregationStrategy aggregationStrategy)
Aggregator EIP:
Creates an aggregator allowing you to combine a number of messages
together into a single message.
|
Type |
attribute(QName name,
Object value)
Adds an optional attribute
|
Type |
bean(Class<?> beanType)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Class<?> beanType,
String method)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Class<?> beanType,
String method,
boolean cache)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Object bean)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Object bean,
boolean cache)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Object bean,
String method)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Object bean,
String method,
boolean cache)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Supplier<Object> bean)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
Type |
bean(Supplier<Object> bean,
String method)
Message
Translator EIP: Adds a bean which is invoked which could be a final
destination, or could be a transformation in a pipeline
|
ChoiceDefinition |
choice()
Content Based
Router EIP: Creates a choice of one or more predicates with an
otherwise clause
|
ClaimCheckDefinition |
claimCheck()
The Claim Check
EIP allows you to replace message content with a claim check (a
unique key), which can be used to retrieve the message content at a later
time.
|
Type |
claimCheck(ClaimCheckOperation operation)
The Claim Check
EIP allows you to replace message content with a claim check (a
unique key), which can be used to retrieve the message content at a later
time.
|
Type |
claimCheck(ClaimCheckOperation operation,
String key)
The Claim Check
EIP allows you to replace message content with a claim check (a
unique key), which can be used to retrieve the message content at a later
time.
|
Type |
claimCheck(ClaimCheckOperation operation,
String key,
String filter)
The Claim Check
EIP allows you to replace message content with a claim check (a
unique key), which can be used to retrieve the message content at a later
time.
|
void |
clearOutput() |
void |
configureChild(ProcessorDefinition<?> output)
Strategy for children to do any custom configuration
|
Type |
convertBodyTo(Class<?> type)
Converts the IN message body to the specified type
|
Type |
convertBodyTo(Class<?> type,
String charset)
Converts the IN message body to the specified type
|
ExpressionClause<DelayDefinition> |
delay()
Delayer EIP: Creates a
delayer allowing you to delay the delivery of messages to some
destination.
|
DelayDefinition |
delay(org.apache.camel.Expression delay)
Delayer EIP: Creates a
delayer allowing you to delay the delivery of messages to some
destination.
|
DelayDefinition |
delay(long delay)
Delayer EIP: Creates a
delayer allowing you to delay the delivery of messages to some
destination.
|
TryDefinition |
doTry()
Creates a try/catch block
|
ExpressionClause<DynamicRouterDefinition<Type>> |
dynamicRouter()
Dynamic Router
EIP: Creates a dynamic router allowing you to route a message
consecutively through a series of processing steps where the sequence of
steps is not known at design time and can vary for each message.
|
DynamicRouterDefinition<Type> |
dynamicRouter(org.apache.camel.Expression expression)
Dynamic Router
EIP: Creates a dynamic router allowing you to route a message
consecutively through a series of processing steps where the sequence of
steps is not known at design time and can vary for each message.
|
ProcessorDefinition<?> |
end()
Ends the current block
|
ChoiceDefinition |
endChoice()
Ends the current block and returns back to the
choice() DSL. |
TryDefinition |
endDoTry()
Ends the current block and returns back to the
doTry() DSL. |
HystrixDefinition |
endHystrix()
Ends the current block and returns back to the
hystrix() DSL. |
ProcessorDefinition<?> |
endParent()
Strategy to allow
ProcessorDefinitions to have special logic when
using end() in the DSL to return back to the intended parent. |
RestDefinition |
endRest()
Ends the current block and returns back to the
rest() DSL. |
ExpressionClause<EnrichDefinition> |
enrich()
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(EndpointProducerBuilder resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(EndpointProducerBuilder resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(EndpointProducerBuilder resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(EndpointProducerBuilder resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException,
boolean shareUnitOfWork)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(String resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(String resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(String resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
Type |
enrich(String resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException,
boolean shareUnitOfWork)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri. |
EnrichClause<ProcessorDefinition<Type>> |
enrichWith(EndpointProducerBuilder resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder. |
EnrichClause<ProcessorDefinition<Type>> |
enrichWith(EndpointProducerBuilder resourceUri,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder. |
EnrichClause<ProcessorDefinition<Type>> |
enrichWith(EndpointProducerBuilder resourceUri,
boolean aggregateOnException,
boolean shareUnitOfWork)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder. |
EnrichClause<ProcessorDefinition<Type>> |
enrichWith(String resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder. |
EnrichClause<ProcessorDefinition<Type>> |
enrichWith(String resourceUri,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder. |
EnrichClause<ProcessorDefinition<Type>> |
enrichWith(String resourceUri,
boolean aggregateOnException,
boolean shareUnitOfWork)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder. |
ExpressionClause<? extends FilterDefinition> |
filter()
Message Filter
EIP: Creates a predicate expression which only if it is true
then the exchange is forwarded to the destination
|
FilterDefinition |
filter(ExpressionDefinition expression)
Message Filter
EIP: Creates a predicate expression which only if it is true
then the exchange is forwarded to the destination
|
FilterDefinition |
filter(org.apache.camel.Predicate predicate)
Message Filter
EIP: Creates a predicate which is applied and only if it is
true then the exchange is forwarded to the destination
|
FilterDefinition |
filter(String language,
String expression)
Message Filter
EIP: Creates a predicate language expression which only if it is
true then the exchange is forwarded to the destination
|
int |
getIndex()
Gets the unique index number for when this
ProcessorDefinition
was created by its constructor. |
List<org.apache.camel.spi.InterceptStrategy> |
getInterceptStrategies() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind
of expression node
|
Map<QName,Object> |
getOtherAttributes()
Adds optional attribute to use as property placeholder
|
abstract List<ProcessorDefinition<?>> |
getOutputs() |
ProcessorDefinition<?> |
getParent() |
HystrixDefinition |
hystrix()
Creates a Hystrix Circuit Breaker EIP.
|
Type |
id(String id)
Sets the id of this node.
|
ExpressionClause<IdempotentConsumerDefinition> |
idempotentConsumer()
Idempotent
consumer EIP: Creates an
IdempotentConsumer using a fluent builder. |
IdempotentConsumerDefinition |
idempotentConsumer(org.apache.camel.Expression messageIdExpression)
Idempotent
consumer EIP: Creates an
IdempotentConsumer to avoid duplicate messages |
IdempotentConsumerDefinition |
idempotentConsumer(org.apache.camel.Expression messageIdExpression,
org.apache.camel.spi.IdempotentRepository idempotentRepository)
Idempotent
consumer EIP: Creates an
IdempotentConsumer to avoid duplicate messages |
Type |
inheritErrorHandler(boolean inheritErrorHandler)
Sets whether or not to inherit the configured error handler.
|
Type |
inOnly(org.apache.camel.Endpoint... endpoints)
Sends the message to the given endpoints using an
Event Message or
InOnly exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOnly(org.apache.camel.Endpoint endpoint)
Sends the message to the given endpoint using an
Event Message or
InOnly exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOnly(Iterable<org.apache.camel.Endpoint> endpoints)
Sends the message to the given endpoints using an
Event Message or
InOnly exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOnly(String... uris)
Sends the message to the given endpoints using an
Event Message or
InOnly exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOnly(String uri)
Sends the message to the given endpoint using an
Event Message or
InOnly exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOut(org.apache.camel.Endpoint... endpoints)
Sends the message to the given endpoints using an
Request Reply or
InOut exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOut(org.apache.camel.Endpoint endpoint)
Sends the message to the given endpoint using an
Request Reply or
InOut exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOut(Iterable<org.apache.camel.Endpoint> endpoints)
Sends the message to the given endpoints using an
Request Reply or
InOut exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOut(String... uris)
Sends the message to the given endpoints using an
Request Reply or
InOut exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
Type |
inOut(String uri)
Sends the message to the given endpoint using an
Request Reply or
InOut exchange
pattern
Notice the existing MEP is restored after the message has been sent to
the given endpoint.
|
boolean |
isAbstract()
Whether this model is abstract or not.
|
Boolean |
isInheritErrorHandler() |
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
addOutput(ProcessorDefinition) method. |
boolean |
isWrappingEntireOutput()
Whether this definition is wrapping the entire output.
|
LoadBalanceDefinition |
loadBalance()
Load Balancer
EIP: Creates a loadbalance
|
LoadBalanceDefinition |
loadBalance(org.apache.camel.processor.loadbalancer.LoadBalancer loadBalancer)
Load Balancer
EIP: Creates a loadbalance
|
Type |
log(org.apache.camel.LoggingLevel loggingLevel,
org.slf4j.Logger logger,
String message)
Creates a log message to be logged at the given level using provided
logger.
|
Type |
log(org.apache.camel.LoggingLevel loggingLevel,
org.slf4j.Logger logger,
String marker,
String message)
Creates a log message to be logged at the given level using provided
logger.
|
Type |
log(org.apache.camel.LoggingLevel loggingLevel,
String message)
Creates a log message to be logged at the given level.
|
Type |
log(org.apache.camel.LoggingLevel loggingLevel,
String logName,
String message)
Creates a log message to be logged at the given level and name.
|
Type |
log(org.apache.camel.LoggingLevel loggingLevel,
String logName,
String marker,
String message)
Creates a log message to be logged at the given level and name.
|
Type |
log(String message)
Creates a log message to be logged at INFO level.
|
ExpressionClause<LoopDefinition> |
loop()
Loop EIP: Creates a loop
allowing to process the a message a number of times and possibly process
them in a different way.
|
LoopDefinition |
loop(org.apache.camel.Expression expression)
Loop EIP: Creates a loop
allowing to process the a message a number of times and possibly process
them in a different way.
|
LoopDefinition |
loop(int count)
Loop EIP: Creates a loop
allowing to process the a message a number of times and possibly process
them in a different way.
|
ExpressionClause<LoopDefinition> |
loopDoWhile()
Loop EIP: Creates a loop
allowing to process the a message a number of times and possibly process
them in a different way using a fluent builder.
|
LoopDefinition |
loopDoWhile(org.apache.camel.Predicate predicate)
Loop EIP: Creates a while
loop allowing to process the a message while the predicate matches and
possibly process them in a different way.
|
Type |
markRollbackOnly()
Marks the exchange for rollback only.
|
Type |
markRollbackOnlyLast()
Marks the exchange for rollback only, but only for the last (current)
transaction.
|
DataFormatClause<ProcessorDefinition<Type>> |
marshal()
DataFormat:
Marshals the in body using a
DataFormat expression to define the
format of the output which will be added to the out body. |
Type |
marshal(org.apache.camel.spi.DataFormat dataFormat)
DataFormat:
Marshals the in body using the specified
DataFormat and sets the
output on the out message body. |
Type |
marshal(DataFormatDefinition dataFormatType)
DataFormat:
Marshals the in body using the specified
DataFormat and sets the
output on the out message body. |
Type |
marshal(String dataTypeRef)
DataFormat:
Marshals the in body the specified
DataFormat reference in the
Registry and sets the output on the out
message body. |
MulticastDefinition |
multicast()
Multicast EIP:
Multicasts messages to all its child outputs; so that each processor and
destination gets a copy of the original message to avoid the processors
interfering with each other.
|
MulticastDefinition |
multicast(org.apache.camel.AggregationStrategy aggregationStrategy)
Multicast EIP:
Multicasts messages to all its child outputs; so that each processor and
destination gets a copy of the original message to avoid the processors
interfering with each other.
|
MulticastDefinition |
multicast(org.apache.camel.AggregationStrategy aggregationStrategy,
boolean parallelProcessing)
Multicast EIP:
Multicasts messages to all its child outputs; so that each processor and
destination gets a copy of the original message to avoid the processors
interfering with each other.
|
OnCompletionDefinition |
onCompletion()
Adds a onCompletion
Synchronization hook
that invoke this route as a callback when the
Exchange has finished being processed. |
OnExceptionDefinition |
onException(Class<? extends Throwable>... exceptions)
Exception
clause for catching certain exceptions and handling them.
|
OnExceptionDefinition |
onException(Class<? extends Throwable> exceptionType)
Exception
clause for catching certain exceptions and handling them.
|
PipelineDefinition |
pipeline()
Pipes and Filters
EIP: Creates a
Pipeline so that
the message will get processed by each endpoint in turn and for
request/response the output of one endpoint will be the input of the next
endpoint |
Type |
pipeline(Collection<org.apache.camel.Endpoint> endpoints)
Pipes and Filters
EIP: Creates a
Pipeline of the
list of endpoints so that the message will get processed by each endpoint
in turn and for request/response the output of one endpoint will be the
input of the next endpoint |
Type |
pipeline(org.apache.camel.Endpoint... endpoints)
Pipes and Filters
EIP: Creates a
Pipeline of the
list of endpoints so that the message will get processed by each endpoint
in turn and for request/response the output of one endpoint will be the
input of the next endpoint |
Type |
pipeline(String... uris)
Pipes and Filters
EIP: Creates a
Pipeline of the
list of endpoints so that the message will get processed by each endpoint
in turn and for request/response the output of one endpoint will be the
input of the next endpoint |
Type |
placeholder(String option,
String key)
Adds a placeholder for the given option
Requires using the
org.apache.camel.component.properties.PropertiesComponent |
PolicyDefinition |
policy(org.apache.camel.spi.Policy policy)
Apply a
Policy. |
PolicyDefinition |
policy(String ref)
Apply a
Policy. |
ExpressionClause<PollEnrichDefinition> |
pollEnrich()
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri,
long timeout)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri,
long timeout,
org.apache.camel.AggregationStrategy aggregationStrategy)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri,
long timeout,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri,
long timeout,
String aggregationStrategyRef)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(EndpointProducerBuilder resourceUri,
long timeout,
String aggregationStrategyRef,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(org.apache.camel.Expression expression,
long timeout,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(org.apache.camel.Expression expression,
long timeout,
String aggregationStrategyRef,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri,
org.apache.camel.AggregationStrategy aggregationStrategy)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri,
long timeout)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri,
long timeout,
org.apache.camel.AggregationStrategy aggregationStrategy)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri,
long timeout,
org.apache.camel.AggregationStrategy aggregationStrategy,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri,
long timeout,
String aggregationStrategyRef)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
Type |
pollEnrich(String resourceUri,
long timeout,
String aggregationStrategyRef,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri using a
PollingConsumer to poll the endpoint. |
EnrichClause<ProcessorDefinition<Type>> |
pollEnrichWith(EndpointProducerBuilder resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint. |
EnrichClause<ProcessorDefinition<Type>> |
pollEnrichWith(EndpointProducerBuilder resourceUri,
long timeout)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint. |
EnrichClause<ProcessorDefinition<Type>> |
pollEnrichWith(EndpointProducerBuilder resourceUri,
long timeout,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint. |
EnrichClause<ProcessorDefinition<Type>> |
pollEnrichWith(String resourceUri)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint. |
EnrichClause<ProcessorDefinition<Type>> |
pollEnrichWith(String resourceUri,
long timeout)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint. |
EnrichClause<ProcessorDefinition<Type>> |
pollEnrichWith(String resourceUri,
long timeout,
boolean aggregateOnException)
The Content
Enricher EIP enriches an exchange with additional data obtained from
a
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint. |
void |
preCreateProcessor()
Strategy to execute any custom logic before the
Processor is
created. |
ProcessClause<ProcessorDefinition<Type>> |
process()
Message
Translator EIP: Adds the custom processor using a fluent builder to
this destination which could be a final destination, or could be a
transformation in a pipeline
|
Type |
process(org.apache.camel.Processor processor)
Message
Translator EIP: Adds the custom processor to this destination which
could be a final destination, or could be a transformation in a pipeline
|
Type |
process(String ref)
Message
Translator EIP: Adds the custom processor reference to this
destination which could be a final destination, or could be a
transformation in a pipeline
|
Type |
process(Supplier<org.apache.camel.Processor> processor)
Message
Translator EIP: Adds the custom processor to this destination which
could be a final destination, or could be a transformation in a pipeline
|
ExpressionClause<RecipientListDefinition<Type>> |
recipientList()
Recipient List
EIP: Creates a dynamic recipient list allowing you to route messages
to a number of dynamically specified recipients
|
RecipientListDefinition<Type> |
recipientList(org.apache.camel.Expression recipients)
Recipient List
EIP: Creates a dynamic recipient list allowing you to route messages
to a number of dynamically specified recipients.
|
RecipientListDefinition<Type> |
recipientList(org.apache.camel.Expression recipients,
String delimiter)
Recipient List
EIP: Creates a dynamic recipient list allowing you to route messages
to a number of dynamically specified recipients
|
ExpressionClause<RecipientListDefinition<Type>> |
recipientList(String delimiter)
Recipient List
EIP: Creates a dynamic recipient list allowing you to route messages
to a number of dynamically specified recipients
|
Type |
removeHeader(String name)
Adds a processor which removes the header on the IN message
|
Type |
removeHeaders(String pattern)
Adds a processor which removes the headers on the IN message
|
Type |
removeHeaders(String pattern,
String... excludePatterns)
Adds a processor which removes the headers on the IN message
|
Type |
removeProperties(String pattern)
Adds a processor which removes the properties in the exchange
|
Type |
removeProperties(String pattern,
String... excludePatterns)
Adds a processor which removes the properties in the exchange
|
Type |
removeProperty(String name)
Adds a processor which removes the exchange property
|
ExpressionClause<ResequenceDefinition> |
resequence()
Resequencer EIP:
Creates a resequencer allowing you to reorganize messages based on some
comparator.
|
ResequenceDefinition |
resequence(org.apache.camel.Expression expression)
Resequencer EIP:
Creates a resequencer allowing you to reorganize messages based on some
comparator.
|
Type |
rollback()
Marks the exchange for rollback only and sets an exception with a default
message.
|
Type |
rollback(String message)
Marks the exchange for rollback and sets an exception with the provided
message.
|
Type |
routeDescription(String description)
Set the route description for this route
|
Type |
routeGroup(String group)
Set the route group for this route.
|
Type |
routeId(String id)
Set the route id for this route.
|
ExpressionClause<RoutingSlipDefinition<Type>> |
routingSlip()
Routing Slip EIP:
Creates a routing slip allowing you to route a message consecutively
through a series of processing steps where the sequence of steps is not
known at design time and can vary for each message.
|
RoutingSlipDefinition<Type> |
routingSlip(org.apache.camel.Expression expression)
Routing Slip EIP:
Creates a routing slip allowing you to route a message consecutively
through a series of processing steps where the sequence of steps is not
known at design time and can vary for each message.
|
RoutingSlipDefinition<Type> |
routingSlip(org.apache.camel.Expression expression,
String uriDelimiter)
Routing Slip EIP:
Creates a routing slip allowing you to route a message consecutively
through a series of processing steps where the sequence of steps is not
known at design time and can vary for each message.
|
SagaDefinition |
saga()
Marks this route as participating to a saga.
|
SamplingDefinition |
sample()
Sampling Throttler
Creates a sampling throttler allowing you to extract a sample of
exchanges from the traffic on a route.
|
SamplingDefinition |
sample(long messageFrequency)
Sampling Throttler
Creates a sampling throttler allowing you to extract a sample of
exchanges from the traffic through a route.
|
SamplingDefinition |
sample(long samplePeriod,
TimeUnit unit)
Sampling Throttler
Creates a sampling throttler allowing you to extract a sample of
exchanges from the traffic through a route.
|
ExpressionClause<ProcessorDefinition<Type>> |
script()
Executes a script (do not change the message body).
|
Type |
script(org.apache.camel.Expression expression)
Executes a script (do not change the message body).
|
ServiceCallDefinition |
serviceCall()
Calls the service
|
Type |
serviceCall(String name)
Calls the service
|
Type |
serviceCall(String name,
String uri)
Calls the service
|
ExpressionClause<ProcessorDefinition<Type>> |
setBody()
Message
Translator EIP: Adds a processor which sets the body on the IN
message
|
Type |
setBody(org.apache.camel.Expression expression)
Message
Translator EIP: Adds a processor which sets the body on the IN
message
|
<Result> Type |
setBody(Function<org.apache.camel.Exchange,Result> function)
Message
Translator EIP: Adds a processor which sets the body on the IN
message
|
<Result> Type |
setBody(Supplier<Result> supplier)
Message
Translator EIP: Adds a processor which sets the body on the IN
message
|
Type |
setExchangePattern(org.apache.camel.ExchangePattern exchangePattern)
|
ExpressionClause<ProcessorDefinition<Type>> |
setHeader(String name)
Adds a processor which sets the header on the IN message
|
Type |
setHeader(String name,
org.apache.camel.Expression expression)
Adds a processor which sets the header on the IN message
|
Type |
setHeader(String name,
Supplier<Object> supplier)
Adds a processor which sets the header on the IN message
|
void |
setInheritErrorHandler(Boolean inheritErrorHandler) |
void |
setOtherAttributes(Map<QName,Object> otherAttributes)
Adds optional attribute to use as property placeholder
|
void |
setParent(ProcessorDefinition<?> parent) |
ExpressionClause<ProcessorDefinition<Type>> |
setProperty(String name)
Adds a processor which sets the exchange property
|
Type |
setProperty(String name,
org.apache.camel.Expression expression)
Adds a processor which sets the exchange property
|
<T> ExpressionClause<SortDefinition<T>> |
sort()
Sorts the expression
|
Type |
sort(org.apache.camel.Expression expression)
Sorts the expression using a default sorting based on toString
representation.
|
<T> Type |
sort(org.apache.camel.Expression expression,
Comparator<T> comparator)
Sorts the expression using the given comparator
|
ExpressionClause<SplitDefinition> |
split()
Splitter EIP: Creates
a splitter allowing you split a message into a number of pieces and
process them individually.
|
SplitDefinition |
split(org.apache.camel.Expression expression)
Splitter EIP: Creates
a splitter allowing you split a message into a number of pieces and
process them individually.
|
SplitDefinition |
split(org.apache.camel.Expression expression,
org.apache.camel.AggregationStrategy aggregationStrategy)
Splitter EIP: Creates
a splitter allowing you split a message into a number of pieces and
process them individually.
|
Type |
startupOrder(int startupOrder) |
StepDefinition |
step()
Routes the message to a sequence of processors which is grouped together
as one logical name.
|
StepDefinition |
step(String id)
Routes the message to a sequence of processors which is grouped together
as one logical name.
|
Type |
stop()
Stops continue routing the current
Exchange and
marks it as completed. |
ThreadsDefinition |
threads()
Continues processing the
Exchange using
asynchronous routing engine. |
ThreadsDefinition |
threads(int poolSize)
Continues processing the
Exchange using
asynchronous routing engine. |
ThreadsDefinition |
threads(int poolSize,
int maxPoolSize)
Continues processing the
Exchange using
asynchronous routing engine. |
ThreadsDefinition |
threads(int poolSize,
int maxPoolSize,
String threadName)
Continues processing the
Exchange using
asynchronous routing engine. |
ExpressionClause<ThrottleDefinition> |
throttle()
Throttler EIP:
Creates a throttler using a fluent builder.
|
ThrottleDefinition |
throttle(org.apache.camel.Expression maximumRequestCount)
Throttler EIP:
Creates a throttler allowing you to ensure that a specific endpoint does
not get overloaded, or that we don't exceed an agreed SLA with some
external service.
|
ThrottleDefinition |
throttle(org.apache.camel.Expression maximumRequestCount,
org.apache.camel.Expression correlationExpressionKey)
Throttler EIP:
Creates a throttler allowing you to ensure that a specific endpoint does
not get overloaded, or that we don't exceed an agreed SLA with some
external service.
|
ThrottleDefinition |
throttle(org.apache.camel.Expression maximumRequestCount,
long correlationExpressionKey)
Throttler EIP:
Creates a throttler allowing you to ensure that a specific endpoint does
not get overloaded, or that we don't exceed an agreed SLA with some
external service.
|
ThrottleDefinition |
throttle(long maximumRequestCount)
Throttler EIP:
Creates a throttler allowing you to ensure that a specific endpoint does
not get overloaded, or that we don't exceed an agreed SLA with some
external service.
|
Type |
throwException(Class<? extends Exception> type,
String message)
Sets the exception on the
Exchange |
Type |
throwException(Exception exception)
Sets the exception on the
Exchange |
Type |
to(org.apache.camel.Endpoint... endpoints)
Sends the exchange to a list of endpoints
|
Type |
to(org.apache.camel.Endpoint endpoint)
Sends the exchange to the given endpoint
|
Type |
to(EndpointProducerBuilder... endpoints)
Sends the exchange to a list of endpoints
|
Type |
to(EndpointProducerBuilder endpoint)
Sends the exchange to the given endpoint
|
Type |
to(org.apache.camel.ExchangePattern pattern,
org.apache.camel.Endpoint... endpoints)
Sends the exchange to a list of endpoints
Notice the existing MEP is preserved
|
Type |
to(org.apache.camel.ExchangePattern pattern,
org.apache.camel.Endpoint endpoint)
Sends the exchange with certain exchange pattern to the given endpoint
Notice the existing MEP is preserved
|
Type |
to(org.apache.camel.ExchangePattern pattern,
EndpointProducerBuilder... endpoints)
Sends the exchange to a list of endpoints
Notice the existing MEP is preserved
|
Type |
to(org.apache.camel.ExchangePattern pattern,
EndpointProducerBuilder endpoint)
Sends the exchange with certain exchange pattern to the given endpoint
Notice the existing MEP is preserved
|
Type |
to(org.apache.camel.ExchangePattern pattern,
Iterable<org.apache.camel.Endpoint> endpoints)
Sends the exchange to a list of endpoints
|
Type |
to(org.apache.camel.ExchangePattern pattern,
String... uris)
Sends the exchange to a list of endpoints
Notice the existing MEP is preserved
|
Type |
to(org.apache.camel.ExchangePattern pattern,
String uri)
Sends the exchange with certain exchange pattern to the given endpoint
Notice the existing MEP is preserved
|
Type |
to(Iterable<org.apache.camel.Endpoint> endpoints)
Sends the exchange to a list of endpoints
|
Type |
to(String... uris)
Sends the exchange to a list of endpoints
|
Type |
to(String uri)
Sends the exchange to the given endpoint
|
Type |
toD(EndpointProducerBuilder endpointProducerBuilder)
Sends the exchange to the given dynamic endpoint
|
Type |
toD(EndpointProducerBuilder endpointProducerBuilder,
boolean ignoreInvalidEndpoint)
Sends the exchange to the given dynamic endpoint
|
Type |
toD(EndpointProducerBuilder endpointProducerBuilder,
int cacheSize)
Sends the exchange to the given dynamic endpoint
|
Type |
toD(String uri)
Sends the exchange to the given dynamic endpoint
|
Type |
toD(String uri,
boolean ignoreInvalidEndpoint)
Sends the exchange to the given dynamic endpoint
|
Type |
toD(String uri,
int cacheSize)
Sends the exchange to the given dynamic endpoint
|
Type |
toF(String uri,
Object... args)
Sends the exchange to the given endpoint
|
TransactedDefinition |
transacted()
Marks this route as transacted and uses the default transacted policy
found in the registry.
|
TransactedDefinition |
transacted(String ref)
Marks this route as transacted.
|
ExpressionClause<ProcessorDefinition<Type>> |
transform()
Message
Translator EIP: Adds a processor which sets the body on the OUT
message
|
Type |
transform(org.apache.camel.Expression expression)
Message
Translator EIP: Adds a processor which sets the body on the OUT
message
|
DataFormatClause<ProcessorDefinition<Type>> |
unmarshal()
DataFormat:
Unmarshals the in body using a
DataFormat expression to define
the format of the input message and the output will be set on the out
message body. |
Type |
unmarshal(org.apache.camel.spi.DataFormat dataFormat)
DataFormat:
Unmarshals the in body using the specified
DataFormat and sets
the output on the out message body. |
Type |
unmarshal(DataFormatDefinition dataFormatType)
DataFormat:
Unmarshals the in body using the specified
DataFormat and sets
the output on the out message body. |
Type |
unmarshal(String dataTypeRef)
DataFormat:
Unmarshals the in body using the specified
DataFormat reference
in the Registry and sets the output on the
out message body. |
ExpressionClause<ValidateDefinition> |
validate()
Creates a validation expression which only if it is true then
the exchange is forwarded to the destination.
|
ValidateDefinition |
validate(org.apache.camel.Expression expression)
Creates a validation expression which only if it is true then
the exchange is forwarded to the destination.
|
ValidateDefinition |
validate(org.apache.camel.Predicate predicate)
Creates a validation expression which only if it is true then
the exchange is forwarded to the destination.
|
WireTapDefinition<Type> |
wireTap(org.apache.camel.Endpoint endpoint)
WireTap EIP: Sends
messages to all its child outputs; so that each processor and destination
gets a copy of the original message to avoid the processors interfering
with each other using
ExchangePattern.InOnly. |
WireTapDefinition<Type> |
wireTap(EndpointProducerBuilder endpoint)
WireTap EIP: Sends
messages to all its child outputs; so that each processor and destination
gets a copy of the original message to avoid the processors interfering
with each other using
ExchangePattern.InOnly. |
WireTapDefinition<Type> |
wireTap(String uri)
WireTap EIP: Sends
messages to all its child outputs; so that each processor and destination
gets a copy of the original message to avoid the processors interfering
with each other using
ExchangePattern.InOnly. |
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptionsprotected final org.slf4j.Logger log
protected Boolean inheritErrorHandler
protected ProcessorDefinition()
public int getIndex()
ProcessorDefinition
was created by its constructor.
This can be used to know the order in which the definition was created
when assembled as a route.public abstract List<ProcessorDefinition<?>> getOutputs()
public boolean isTopLevelOnly()
addOutput(ProcessorDefinition) method.public boolean isAbstract()
public boolean isWrappingEntireOutput()
public void addOutput(ProcessorDefinition<?> output)
Blockpublic void clearOutput()
public void preCreateProcessor()
Processor is
created.public void configureChild(ProcessorDefinition<?> output)
output - the child to be added as output to thispublic Type placeholder(String option, String key)
org.apache.camel.component.properties.PropertiesComponentoption - the name of the optionkey - the placeholder keypublic Type attribute(QName name, Object value)
name - the name of the attributevalue - the valuepublic Type to(@AsEndpointUri String uri)
uri - the endpoint to send topublic Type toD(@AsEndpointUri String uri)
uri - the dynamic endpoint to send to (resolved using simple
language by default)public Type toD(@AsEndpointUri EndpointProducerBuilder endpointProducerBuilder)
endpointProducerBuilder - the dynamic endpoint to send to (resolved
using simple language by default)public Type toD(@AsEndpointUri String uri, int cacheSize)
uri - the dynamic endpoint to send to (resolved using simple
language by default)cacheSize - sets the maximum size used by the
ConsumerCache which is used to
cache and reuse producers.public Type toD(@AsEndpointUri EndpointProducerBuilder endpointProducerBuilder, int cacheSize)
endpointProducerBuilder - the dynamic endpoint to send to (resolved
using simple language by default)cacheSize - sets the maximum size used by the
ConsumerCache which is used to
cache and reuse producers.public Type toD(@AsEndpointUri String uri, boolean ignoreInvalidEndpoint)
uri - the dynamic endpoint to send to (resolved using simple
language by default)ignoreInvalidEndpoint - ignore the invalidate endpoint exception
when try to create a producer with that endpointpublic Type toD(@AsEndpointUri EndpointProducerBuilder endpointProducerBuilder, boolean ignoreInvalidEndpoint)
endpointProducerBuilder - the dynamic endpoint to send to (resolved
using simple language by default)ignoreInvalidEndpoint - ignore the invalidate endpoint exception
when try to create a producer with that endpointpublic Type toF(@AsEndpointUri String uri, Object... args)
uri - the String formatted endpoint uri to send toargs - arguments for the string formatting of the uripublic ServiceCallDefinition serviceCall()
public Type serviceCall(String name)
name - the service namepublic Type serviceCall(String name, @AsEndpointUri String uri)
name - the service nameuri - the endpoint uri to use for calling the servicepublic Type to(org.apache.camel.Endpoint endpoint)
endpoint - the endpoint to send topublic Type to(@AsEndpointUri EndpointProducerBuilder endpoint)
endpoint - the endpoint to send topublic Type to(org.apache.camel.ExchangePattern pattern, @AsEndpointUri String uri)
pattern - the pattern to use for the message exchangeuri - the endpoint to send topublic Type to(org.apache.camel.ExchangePattern pattern, org.apache.camel.Endpoint endpoint)
pattern - the pattern to use for the message exchangeendpoint - the endpoint to send topublic Type to(org.apache.camel.ExchangePattern pattern, EndpointProducerBuilder endpoint)
pattern - the pattern to use for the message exchangeendpoint - the endpoint to send topublic Type to(@AsEndpointUri String... uris)
uris - list of endpoints to send topublic Type to(org.apache.camel.Endpoint... endpoints)
endpoints - list of endpoints to send topublic Type to(Iterable<org.apache.camel.Endpoint> endpoints)
endpoints - list of endpoints to send topublic Type to(@AsEndpointUri EndpointProducerBuilder... endpoints)
endpoints - list of endpoints to send topublic Type to(org.apache.camel.ExchangePattern pattern, @AsEndpointUri String... uris)
pattern - the pattern to use for the message exchangesuris - list of endpoints to send topublic Type to(org.apache.camel.ExchangePattern pattern, org.apache.camel.Endpoint... endpoints)
pattern - the pattern to use for the message exchangesendpoints - list of endpoints to send topublic Type to(org.apache.camel.ExchangePattern pattern, Iterable<org.apache.camel.Endpoint> endpoints)
pattern - the pattern to use for the message exchangesendpoints - list of endpoints to send topublic Type to(org.apache.camel.ExchangePattern pattern, @AsEndpointUri EndpointProducerBuilder... endpoints)
pattern - the pattern to use for the message exchangesendpoints - list of endpoints to send topublic Type setExchangePattern(org.apache.camel.ExchangePattern exchangePattern)
ExchangePattern into the Exchange.
The pattern set on the Exchange will be changed from this point
going foward.exchangePattern - instance of ExchangePatternpublic Type inOnly(@AsEndpointUri String uri)
uri - The endpoint uri which is used for sending the exchangepublic Type inOnly(org.apache.camel.Endpoint endpoint)
endpoint - The endpoint which is used for sending the exchangepublic Type inOnly(@AsEndpointUri String... uris)
uris - list of endpoints to send topublic Type inOnly(@AsEndpointUri org.apache.camel.Endpoint... endpoints)
endpoints - list of endpoints to send topublic Type inOnly(Iterable<org.apache.camel.Endpoint> endpoints)
endpoints - list of endpoints to send topublic Type inOut(@AsEndpointUri String uri)
uri - The endpoint uri which is used for sending the exchangepublic Type inOut(org.apache.camel.Endpoint endpoint)
endpoint - The endpoint which is used for sending the exchangepublic Type inOut(@AsEndpointUri String... uris)
uris - list of endpoints to send topublic Type inOut(org.apache.camel.Endpoint... endpoints)
endpoints - list of endpoints to send topublic Type inOut(Iterable<org.apache.camel.Endpoint> endpoints)
endpoints - list of endpoints to send topublic Type id(String id)
routeId(String) instead.id in class OptionalIdentifiedDefinition<Type extends ProcessorDefinition<Type>>id - the idpublic Type routeId(String id)
CamelContext must have an unique route
id. If you use the API from CamelContext or
ModelCamelContext to add routes, then any new routes which has a
route id that matches an old route, then the old route is replaced by the
new route.id - the route id, should be uniquepublic Type routeGroup(String group)
group - the route grouppublic Type routeDescription(String description)
description - the route descriptionpublic MulticastDefinition multicast()
public MulticastDefinition multicast(org.apache.camel.AggregationStrategy aggregationStrategy, boolean parallelProcessing)
aggregationStrategy - the strategy used to aggregate responses for
every partparallelProcessing - if is true camel will fork thread to
call the endpoint producerpublic MulticastDefinition multicast(org.apache.camel.AggregationStrategy aggregationStrategy)
aggregationStrategy - the strategy used to aggregate responses for
every partpublic StepDefinition step()
public StepDefinition step(String id)
id - unique id of the step within the camel contextpublic PipelineDefinition pipeline()
Pipeline so that
the message will get processed by each endpoint in turn and for
request/response the output of one endpoint will be the input of the next
endpointpublic Type pipeline(@AsEndpointUri String... uris)
Pipeline of the
list of endpoints so that the message will get processed by each endpoint
in turn and for request/response the output of one endpoint will be the
input of the next endpointuris - list of endpointspublic Type pipeline(org.apache.camel.Endpoint... endpoints)
Pipeline of the
list of endpoints so that the message will get processed by each endpoint
in turn and for request/response the output of one endpoint will be the
input of the next endpointendpoints - list of endpointspublic Type pipeline(Collection<org.apache.camel.Endpoint> endpoints)
Pipeline of the
list of endpoints so that the message will get processed by each endpoint
in turn and for request/response the output of one endpoint will be the
input of the next endpointendpoints - list of endpointspublic ThreadsDefinition threads()
Exchange using
asynchronous routing engine.public ThreadsDefinition threads(int poolSize)
Exchange using
asynchronous routing engine.poolSize - the core pool sizepublic ThreadsDefinition threads(int poolSize, int maxPoolSize)
Exchange using
asynchronous routing engine.poolSize - the core pool sizemaxPoolSize - the maximum pool sizepublic ThreadsDefinition threads(int poolSize, int maxPoolSize, String threadName)
Exchange using
asynchronous routing engine.poolSize - the core pool sizemaxPoolSize - the maximum pool sizethreadName - the thread pool namepublic ProcessorDefinition<?> end()
public ProcessorDefinition<?> endParent()
ProcessorDefinitions to have special logic when
using end() in the DSL to return back to the intended parent.
For example a content based router we return back to the
ChoiceDefinition when we end() from a WhenDefinition.public ChoiceDefinition endChoice()
choice() DSL.
Important: If you want to end the entire choice block, then use
end() instead. The purpose of endChoice() is to return
control back to the choice() DSL, so you
can add subsequent when and otherwise to the choice.
There can be situations where you would need to use endChoice()
often when you add additional EIPs inside the when's, and the
DSL end(), and you
would need to use this endChoice() to return back the scope to
the choice() DSL.
For more details and examples see also this FAQ: Why
can I not use when or otherwise in a Java Camel route .public RestDefinition endRest()
rest() DSL.public TryDefinition endDoTry()
doTry() DSL.public HystrixDefinition endHystrix()
hystrix() DSL.public ExpressionClause<IdempotentConsumerDefinition> idempotentConsumer()
IdempotentConsumer using a fluent builder.public IdempotentConsumerDefinition idempotentConsumer(org.apache.camel.Expression messageIdExpression)
IdempotentConsumer to avoid duplicate messagesmessageIdExpression - expression to test of duplicate messagespublic IdempotentConsumerDefinition idempotentConsumer(org.apache.camel.Expression messageIdExpression, org.apache.camel.spi.IdempotentRepository idempotentRepository)
IdempotentConsumer to avoid duplicate messagesmessageIdExpression - expression to test of duplicate messagesidempotentRepository - the repository to use for duplicate check@AsPredicate public ExpressionClause<? extends FilterDefinition> filter()
public FilterDefinition filter(@AsPredicate org.apache.camel.Predicate predicate)
predicate - predicate to usepublic FilterDefinition filter(@AsPredicate ExpressionDefinition expression)
expression - the predicate expression to usepublic FilterDefinition filter(String language, @AsPredicate String expression)
language - language for expressionexpression - the expressionpublic ValidateDefinition validate(@AsPredicate org.apache.camel.Expression expression)
PredicateValidationException
is thrown.expression - the expressionpublic ValidateDefinition validate(@AsPredicate org.apache.camel.Predicate predicate)
PredicateValidationException
is thrown.predicate - the predicate@AsPredicate public ExpressionClause<ValidateDefinition> validate()
PredicateValidationException
is thrown.public HystrixDefinition hystrix()
public LoadBalanceDefinition loadBalance()
public LoadBalanceDefinition loadBalance(org.apache.camel.processor.loadbalancer.LoadBalancer loadBalancer)
loadBalancer - a custom load balancer to usepublic Type log(String message)
message - the log message, (you can use
SimpleLanguage
syntax)public Type log(org.apache.camel.LoggingLevel loggingLevel, String message)
loggingLevel - the logging level to usemessage - the log message, (you can use
SimpleLanguage
syntax)public Type log(org.apache.camel.LoggingLevel loggingLevel, String logName, String message)
loggingLevel - the logging level to uselogName - the log name to usemessage - the log message, (you can use
SimpleLanguage
syntax)public Type log(org.apache.camel.LoggingLevel loggingLevel, org.slf4j.Logger logger, String message)
loggingLevel - the logging level to uselogger - the logger to usemessage - the log message, (you can use
SimpleLanguage
syntax)public Type log(org.apache.camel.LoggingLevel loggingLevel, String logName, String marker, String message)
loggingLevel - the logging level to uselogName - the log name to usemarker - log marker namemessage - the log message, (you can use
SimpleLanguage
syntax)public Type log(org.apache.camel.LoggingLevel loggingLevel, org.slf4j.Logger logger, String marker, String message)
loggingLevel - the logging level to uselogger - the logger to usemarker - log marker namemessage - the log message, (you can use
SimpleLanguage
syntax)public ChoiceDefinition choice()
public TryDefinition doTry()
public RecipientListDefinition<Type> recipientList(@AsEndpointUri org.apache.camel.Expression recipients)
recipients - expression to decide the destinationspublic RecipientListDefinition<Type> recipientList(@AsEndpointUri org.apache.camel.Expression recipients, String delimiter)
recipients - expression to decide the destinationsdelimiter - a custom delimiter to use@AsEndpointUri public ExpressionClause<RecipientListDefinition<Type>> recipientList(String delimiter)
delimiter - a custom delimiter to use@AsEndpointUri public ExpressionClause<RecipientListDefinition<Type>> recipientList()
public RoutingSlipDefinition<Type> routingSlip(@AsEndpointUri org.apache.camel.Expression expression, String uriDelimiter)
dynamicRouter() if you need even more dynamic routing.expression - to decide the destinationsuriDelimiter - is the delimiter that will be used to split up the
list of URIs in the routing slip.public RoutingSlipDefinition<Type> routingSlip(@AsEndpointUri org.apache.camel.Expression expression)
RoutingSlipDefinition.DEFAULT_DELIMITER
The route slip will be evaluated once, use
dynamicRouter() if you need even more dynamic routing.expression - to decide the destinationspublic ExpressionClause<RoutingSlipDefinition<Type>> routingSlip()
RoutingSlipDefinition.DEFAULT_DELIMITER
The route slip will be evaluated once, use
dynamicRouter() if you need even more dynamic routing.public DynamicRouterDefinition<Type> dynamicRouter(@AsEndpointUri org.apache.camel.Expression expression)
expression - to decide the destinations, which will be invoked
repeatedly until it evaluates null to indicate no
more destinations.@AsEndpointUri public ExpressionClause<DynamicRouterDefinition<Type>> dynamicRouter()
public SamplingDefinition sample()
public SamplingDefinition sample(long samplePeriod, TimeUnit unit)
samplePeriod - this is the sample interval, only one exchange is
allowed through in this intervalunit - this is the units for the samplePeriod e.g. Secondspublic SamplingDefinition sample(long messageFrequency)
messageFrequency - this is the sample message frequency, only one
exchange is allowed through for this many messages receivedpublic ExpressionClause<SplitDefinition> split()
This splitter responds with the original input message. You can use a
custom AggregationStrategy to control what to respond from the
splitter.
public SplitDefinition split(org.apache.camel.Expression expression)
This splitter responds with the original input message. You can use a
custom AggregationStrategy to control what to respond from the
splitter.
expression - the expression on which to split the messagepublic SplitDefinition split(org.apache.camel.Expression expression, org.apache.camel.AggregationStrategy aggregationStrategy)
The splitter responds with the answer produced by the given
AggregationStrategy.
expression - the expression on which to splitaggregationStrategy - the strategy used to aggregate responses for
every partpublic ExpressionClause<ResequenceDefinition> resequence()
public ResequenceDefinition resequence(org.apache.camel.Expression expression)
expression - the expression on which to compare messages in orderpublic ExpressionClause<AggregateDefinition> aggregate()
public ExpressionClause<AggregateDefinition> aggregate(org.apache.camel.AggregationStrategy aggregationStrategy)
aggregationStrategy - the strategy used for the aggregationpublic AggregateDefinition aggregate(org.apache.camel.Expression correlationExpression)
correlationExpression - the expression used to calculate the
correlation key. For a JMS message this could be the
expression header("JMSDestination") or
header("JMSCorrelationID")public AggregateDefinition aggregate(org.apache.camel.Expression correlationExpression, org.apache.camel.AggregationStrategy aggregationStrategy)
correlationExpression - the expression used to calculate the
correlation key. For a JMS message this could be the
expression header("JMSDestination") or
header("JMSCorrelationID")aggregationStrategy - the strategy used for the aggregationpublic DelayDefinition delay(org.apache.camel.Expression delay)
delay - an expression to calculate the delay time in millispublic ExpressionClause<DelayDefinition> delay()
public DelayDefinition delay(long delay)
delay - the delay in millispublic ExpressionClause<ThrottleDefinition> throttle()
public ThrottleDefinition throttle(long maximumRequestCount)
maximumRequestCount - the maximum messagespublic ThrottleDefinition throttle(org.apache.camel.Expression maximumRequestCount)
maximumRequestCount - an expression to calculate the maximum request
countpublic ThrottleDefinition throttle(org.apache.camel.Expression maximumRequestCount, long correlationExpressionKey)
maximumRequestCount - an expression to calculate the maximum request
countcorrelationExpressionKey - is a correlation key that can throttle by
the given key instead of overall throttlingpublic ThrottleDefinition throttle(org.apache.camel.Expression maximumRequestCount, org.apache.camel.Expression correlationExpressionKey)
maximumRequestCount - an expression to calculate the maximum request
countcorrelationExpressionKey - is a correlation key as an expression
that can throttle by the given key instead of overall
throttlingpublic ExpressionClause<LoopDefinition> loop()
public LoopDefinition loop(org.apache.camel.Expression expression)
expression - the loop expressionpublic LoopDefinition loopDoWhile(@AsPredicate org.apache.camel.Predicate predicate)
predicate - the while loop predicatepublic ExpressionClause<LoopDefinition> loopDoWhile()
public LoopDefinition loop(int count)
count - the number of timespublic Type throwException(Exception exception)
Exchangeexception - the exception to throwpublic Type throwException(Class<? extends Exception> type, String message)
Exchangetype - the exception class to usemessage - the given message as caused message (supports simple
language)public Type markRollbackOnly()
rollback()
methods.rollback(),
rollback(String),
markRollbackOnlyLast()public Type markRollbackOnlyLast()
rollback()
methods.rollback(),
rollback(String),
markRollbackOnly()public Type rollback()
RollbackExchangeException on the Exchange and
mark it for rollback.markRollbackOnly()public Type rollback(String message)
RollbackExchangeException on the Exchange and
mark it for rollback.message - an optional message used for logging purpose why the
rollback was triggeredmarkRollbackOnly()public WireTapDefinition<Type> wireTap(org.apache.camel.Endpoint endpoint)
ExchangePattern.InOnly.endpoint - the endpoint to wiretap topublic WireTapDefinition<Type> wireTap(@AsEndpointUri EndpointProducerBuilder endpoint)
ExchangePattern.InOnly.endpoint - the endpoint to wiretap topublic WireTapDefinition<Type> wireTap(@AsEndpointUri String uri)
ExchangePattern.InOnly.uri - the dynamic endpoint to wiretap to (resolved using simple
language by default)public Type startupOrder(int startupOrder)
public Type stop()
Exchange and
marks it as completed.public OnExceptionDefinition onException(Class<? extends Throwable> exceptionType)
exceptionType - the exception to catchpublic OnExceptionDefinition onException(Class<? extends Throwable>... exceptions)
exceptions - list of exceptions to catchpublic PolicyDefinition policy(org.apache.camel.spi.Policy policy)
Policy.
Policy can be used for transactional policies.policy - the policy to applypublic PolicyDefinition policy(String ref)
Policy.
Policy can be used for transactional policies.ref - reference to lookup a policy in the registrypublic TransactedDefinition transacted()
public TransactedDefinition transacted(String ref)
ref - reference to lookup a transacted policy in the registrypublic SagaDefinition saga()
public Type process(org.apache.camel.Processor processor)
processor - the custom Processorpublic Type process(Supplier<org.apache.camel.Processor> processor)
processor - the custom Processorpublic Type process(String ref)
ref - reference to a Processor to lookup in the registrypublic ProcessClause<ProcessorDefinition<Type>> process()
public Type bean(Object bean)
bean - the bean to invoke, or a reference to a bean if the type is a
Stringpublic Type bean(Supplier<Object> bean)
bean - the bean to invoke, or a reference to a bean if the type is a
Stringpublic Type bean(Object bean, String method)
bean - the bean to invoke, or a reference to a bean if the type is a
Stringmethod - the method name to invoke on the bean (can be used to avoid
ambiguity)public Type bean(Supplier<Object> bean, String method)
bean - the bean to invoke, or a reference to a bean if the type is a
Stringmethod - the method name to invoke on the bean (can be used to avoid
ambiguity)public Type bean(Object bean, boolean cache)
bean - the bean to invoke, or a reference to a bean if the type is a
Stringcache - if enabled, Camel will cache the result of the first
Registry look-up. Cache can be enabled if the bean in the
Registry is defined as a singleton scope. the multi parameterpublic Type bean(Object bean, String method, boolean cache)
bean - the bean to invoke, or a reference to a bean if the type is a
Stringmethod - the method name to invoke on the bean (can be used to avoid
ambiguity)cache - if enabled, Camel will cache the result of the first
Registry look-up. Cache can be enabled if the bean in the
Registry is defined as a singleton scope. the multi parameterpublic Type bean(Class<?> beanType)
beanType - the bean class, Camel will instantiate an object at
runtimepublic Type bean(Class<?> beanType, String method)
beanType - the bean class, Camel will instantiate an object at
runtimemethod - the method name to invoke on the bean (can be used to avoid
ambiguity)public Type bean(Class<?> beanType, String method, boolean cache)
beanType - the bean class, Camel will instantiate an object at
runtimemethod - the method name to invoke on the bean (can be used to avoid
ambiguity)cache - if enabled, Camel will cache the result of the first
Registry look-up. Cache can be enabled if the bean in the
Registry is defined as a singleton scope. the multi parameterpublic ExpressionClause<ProcessorDefinition<Type>> setBody()
public Type setBody(org.apache.camel.Expression expression)
expression - the expression used to set the bodypublic <Result> Type setBody(Supplier<Result> supplier)
supplier - the supplier that provides a value to the IN message bodypublic <Result> Type setBody(Function<org.apache.camel.Exchange,Result> function)
function - the function that provides a value to the IN message bodypublic Type transform(org.apache.camel.Expression expression)
expression - the expression used to set the bodypublic ExpressionClause<ProcessorDefinition<Type>> transform()
public Type script(org.apache.camel.Expression expression)
expression - the expression used as the script.public ExpressionClause<ProcessorDefinition<Type>> script()
public ExpressionClause<ProcessorDefinition<Type>> setHeader(String name)
name - the header namepublic Type setHeader(String name, org.apache.camel.Expression expression)
name - the header nameexpression - the expression used to set the headerpublic Type setHeader(String name, Supplier<Object> supplier)
name - the header namesupplier - the supplier used to set the headerpublic Type setProperty(String name, org.apache.camel.Expression expression)
name - the property nameexpression - the expression used to set the propertypublic ExpressionClause<ProcessorDefinition<Type>> setProperty(String name)
name - the property namepublic Type removeHeader(String name)
name - the header namepublic Type removeHeaders(String pattern)
pattern - a pattern to match header names to be removedpublic Type removeHeaders(String pattern, String... excludePatterns)
pattern - a pattern to match header names to be removedexcludePatterns - one or more pattern of header names that should be
excluded (= preserved)public Type removeProperty(String name)
name - the property namepublic Type removeProperties(String pattern)
pattern - a pattern to match properties names to be removedpublic Type removeProperties(String pattern, String... excludePatterns)
pattern - a pattern to match properties names to be removedexcludePatterns - one or more pattern of properties names that
should be excluded (= preserved)public Type convertBodyTo(Class<?> type)
type - the type to convert topublic Type convertBodyTo(Class<?> type, String charset)
type - the type to convert tocharset - the charset to use by type converters (not all converters
support specifc charset)public Type sort(org.apache.camel.Expression expression)
expression - the expression, must be convertable to Listpublic <T> Type sort(org.apache.camel.Expression expression, Comparator<T> comparator)
expression - the expression, must be convertable to Listcomparator - the comparator to use for sortingpublic <T> ExpressionClause<SortDefinition<T>> sort()
public ClaimCheckDefinition claimCheck()
public Type claimCheck(ClaimCheckOperation operation)
operation - the claim check operation to use.public Type claimCheck(ClaimCheckOperation operation, String key)
operation - the claim check operation to use.key - the unique key to use for the get and set operations, can be
null for push/pop operationspublic Type claimCheck(ClaimCheckOperation operation, String key, String filter)
operation - the claim check operation to use.key - the unique key to use for the get and set operations, can be
null for push/pop operationsfilter - describes what data to include/exclude when merging data
back when using get or pop operations.public Type enrich(@AsEndpointUri String resourceUri)
resourceUri.
The difference between this and pollEnrich(String) is that this
uses a producer to obatin the additional data, where as pollEnrich uses a
polling consumer.resourceUri - URI of resource endpoint for obtaining additional
data.Enricherpublic Type enrich(@AsEndpointUri String resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy)
resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.Enricherpublic Type enrich(@AsEndpointUri EndpointProducerBuilder resourceUri)
resourceUri.
The difference between this and pollEnrich(String) is that this
uses a producer to obatin the additional data, where as pollEnrich uses a
polling consumer.resourceUri - URI of resource endpoint for obtaining additional
data.Enricherpublic Type enrich(@AsEndpointUri EndpointProducerBuilder resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy)
resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.Enricherpublic EnrichClause<ProcessorDefinition<Type>> enrichWith(@AsEndpointUri String resourceUri)
resourceUri and with an aggregation strategy created using
a fluent builder. fom("direct:start") .enrichWith("direct:resource") .body(String.class, (o, n) -> n + o);
resourceUri - URI of resource endpoint for obtaining additional
data.Enricherpublic EnrichClause<ProcessorDefinition<Type>> enrichWith(@AsEndpointUri String resourceUri, boolean aggregateOnException)
resourceUri and with an aggregation strategy created using
a fluent builder.public EnrichClause<ProcessorDefinition<Type>> enrichWith(@AsEndpointUri String resourceUri, boolean aggregateOnException, boolean shareUnitOfWork)
resourceUri and with an aggregation strategy created using
a fluent builder.public EnrichClause<ProcessorDefinition<Type>> enrichWith(@AsEndpointUri EndpointProducerBuilder resourceUri)
resourceUri and with an aggregation strategy created using
a fluent builder. fom("direct:start") .enrichWith("direct:resource") .body(String.class, (o, n) -> n + o);
resourceUri - URI of resource endpoint for obtaining additional
data.Enricherpublic EnrichClause<ProcessorDefinition<Type>> enrichWith(@AsEndpointUri EndpointProducerBuilder resourceUri, boolean aggregateOnException)
resourceUri and with an aggregation strategy created using
a fluent builder.public EnrichClause<ProcessorDefinition<Type>> enrichWith(@AsEndpointUri EndpointProducerBuilder resourceUri, boolean aggregateOnException, boolean shareUnitOfWork)
resourceUri and with an aggregation strategy created using
a fluent builder.public Type enrich(@AsEndpointUri String resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException)
resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.Enricherpublic Type enrich(@AsEndpointUri String resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException, boolean shareUnitOfWork)
resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.shareUnitOfWork - whether to share unit of workEnricherpublic Type enrich(@AsEndpointUri EndpointProducerBuilder resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException)
resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.Enricherpublic Type enrich(@AsEndpointUri EndpointProducerBuilder resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException, boolean shareUnitOfWork)
resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.shareUnitOfWork - whether to share unit of workEnricher@AsEndpointUri public ExpressionClause<EnrichDefinition> enrich()
resourceUri.
The difference between this and pollEnrich(String) is that this
uses a producer to obtain the additional data, where as pollEnrich uses a
polling consumer.PollEnricherpublic Type pollEnrich(@AsEndpointUri String resourceUri)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
This method will block until data is available, use the method
with timeout if you do not want to risk waiting a long time before data
is available from the resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.PollEnricherpublic Type pollEnrich(@AsEndpointUri String resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
This method will block until data is available, use the method
with timeout if you do not want to risk waiting a long time before data
is available from the resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.PollEnricherpublic Type pollEnrich(@AsEndpointUri String resourceUri, long timeout, org.apache.camel.AggregationStrategy aggregationStrategy)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.PollEnricherpublic Type pollEnrich(@AsEndpointUri String resourceUri, long timeout, String aggregationStrategyRef)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategyRef - Reference of aggregation strategy to
aggregate input data and additional data.PollEnricherpublic Type pollEnrich(EndpointProducerBuilder resourceUri)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
This method will block until data is available, use the method
with timeout if you do not want to risk waiting a long time before data
is available from the resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.PollEnricherpublic Type pollEnrich(EndpointProducerBuilder resourceUri, org.apache.camel.AggregationStrategy aggregationStrategy)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
This method will block until data is available, use the method
with timeout if you do not want to risk waiting a long time before data
is available from the resourceUri.resourceUri - URI of resource endpoint for obtaining additional
data.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.PollEnricherpublic Type pollEnrich(EndpointProducerBuilder resourceUri, long timeout, org.apache.camel.AggregationStrategy aggregationStrategy)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.PollEnricherpublic Type pollEnrich(EndpointProducerBuilder resourceUri, long timeout, String aggregationStrategyRef)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategyRef - Reference of aggregation strategy to
aggregate input data and additional data.PollEnricherpublic EnrichClause<ProcessorDefinition<Type>> pollEnrichWith(@AsEndpointUri String resourceUri)
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint.public EnrichClause<ProcessorDefinition<Type>> pollEnrichWith(@AsEndpointUri String resourceUri, long timeout)
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint.public EnrichClause<ProcessorDefinition<Type>> pollEnrichWith(@AsEndpointUri String resourceUri, long timeout, boolean aggregateOnException)
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint.public EnrichClause<ProcessorDefinition<Type>> pollEnrichWith(EndpointProducerBuilder resourceUri)
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint.public EnrichClause<ProcessorDefinition<Type>> pollEnrichWith(EndpointProducerBuilder resourceUri, long timeout)
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint.public EnrichClause<ProcessorDefinition<Type>> pollEnrichWith(EndpointProducerBuilder resourceUri, long timeout, boolean aggregateOnException)
resourceUri and with an aggregation strategy created using
a fluent builder using a PollingConsumer to poll
the endpoint.public Type pollEnrich(@AsEndpointUri String resourceUri, long timeout, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.PollEnricherpublic Type pollEnrich(@AsEndpointUri String resourceUri, long timeout, String aggregationStrategyRef, boolean aggregateOnException)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategyRef - Reference of aggregation strategy to
aggregate input data and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.PollEnricherpublic Type pollEnrich(@AsEndpointUri String resourceUri, long timeout)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.PollEnricherpublic Type pollEnrich(@AsEndpointUri EndpointProducerBuilder resourceUri, long timeout, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.PollEnricherpublic Type pollEnrich(@AsEndpointUri EndpointProducerBuilder resourceUri, long timeout, String aggregationStrategyRef, boolean aggregateOnException)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.aggregationStrategyRef - Reference of aggregation strategy to
aggregate input data and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.PollEnricherpublic Type pollEnrich(@AsEndpointUri EndpointProducerBuilder resourceUri, long timeout)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).resourceUri - URI of resource endpoint for obtaining additional
data.timeout - timeout in millis to wait at most for data to be
available.PollEnricherpublic Type pollEnrich(@AsEndpointUri org.apache.camel.Expression expression, long timeout, String aggregationStrategyRef, boolean aggregateOnException)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).expression - to use an expression to dynamically compute the
endpoint to poll fromtimeout - timeout in millis to wait at most for data to be
available.aggregationStrategyRef - Reference of aggregation strategy to
aggregate input data and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.PollEnricherpublic Type pollEnrich(@AsEndpointUri org.apache.camel.Expression expression, long timeout, org.apache.camel.AggregationStrategy aggregationStrategy, boolean aggregateOnException)
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).expression - to use an expression to dynamically compute the
endpoint to poll fromtimeout - timeout in millis to wait at most for data to be
available.aggregationStrategy - aggregation strategy to aggregate input data
and additional data.aggregateOnException - whether to call
AggregationStrategy.aggregate(org.apache.camel.Exchange, org.apache.camel.Exchange)
if an exception was thrown.PollEnricher@AsEndpointUri public ExpressionClause<PollEnrichDefinition> pollEnrich()
resourceUri using a
PollingConsumer to poll the endpoint.
The difference between this and enrich(String) is that this uses
a consumer to obtain the additional data, where as enrich uses a
producer.
The timeout controls which operation to use on
PollingConsumer. If timeout is negative, we use
receive. If timeout is 0 then we use receiveNoWait
otherwise we use receive(timeout).PollEnricherpublic OnCompletionDefinition onCompletion()
Synchronization hook
that invoke this route as a callback when the
Exchange has finished being processed. The hook
invoke callbacks for either onComplete or onFailure.
Will by default always trigger when the Exchange
is complete (either with success or failed). Exchange with the key
Exchange.EXCEPTION_CAUGHT.public DataFormatClause<ProcessorDefinition<Type>> unmarshal()
DataFormat expression to define
the format of the input message and the output will be set on the out
message body.DataFormatpublic Type unmarshal(DataFormatDefinition dataFormatType)
DataFormat and sets
the output on the out message body.dataFormatType - the dataformatpublic Type unmarshal(org.apache.camel.spi.DataFormat dataFormat)
DataFormat and sets
the output on the out message body.dataFormat - the dataformatpublic Type unmarshal(String dataTypeRef)
DataFormat reference
in the Registry and sets the output on the
out message body.dataTypeRef - reference to a DataFormat to lookup in the
registrypublic DataFormatClause<ProcessorDefinition<Type>> marshal()
DataFormat expression to define the
format of the output which will be added to the out body.DataFormatpublic Type marshal(DataFormatDefinition dataFormatType)
DataFormat and sets the
output on the out message body.dataFormatType - the dataformatpublic Type marshal(org.apache.camel.spi.DataFormat dataFormat)
DataFormat and sets the
output on the out message body.dataFormat - the dataformatpublic Type marshal(String dataTypeRef)
DataFormat reference in the
Registry and sets the output on the out
message body.dataTypeRef - reference to a DataFormat to lookup in the
registrypublic Type inheritErrorHandler(boolean inheritErrorHandler)
inheritErrorHandler - whether to not to inherit the error handler
for this nodepublic ProcessorDefinition<?> getParent()
getParent in interface org.apache.camel.NamedNodegetParent in class OptionalIdentifiedDefinition<Type extends ProcessorDefinition<Type>>public void setParent(ProcessorDefinition<?> parent)
public List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
public void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy strategy)
public Boolean isInheritErrorHandler()
public void setInheritErrorHandler(Boolean inheritErrorHandler)
public Map<QName,Object> getOtherAttributes()
OtherAttributesAwaregetOtherAttributes in interface OtherAttributesAwarepublic void setOtherAttributes(Map<QName,Object> otherAttributes)
OtherAttributesAwaresetOtherAttributes in interface OtherAttributesAwareApache Camel