@Retention(value=RUNTIME) @Documented @Target(value={FIELD,METHOD,CONSTRUCTOR}) public @interface Consume
Endpoint
either via its
URI or via the name of the endpoint reference
which is then resolved in a registry such as the Spring Application Context.
When a message Exchange
is received from the Endpoint
then the
Bean Integration
mechanism is used to map the incoming Message
to the method parameters.Modifier and Type | Optional Element and Description |
---|---|
String |
context
Id of
CamelContext to use |
String |
predicate
Optional predicate (using simple language) to only consume if the predicate matches .
|
String |
property
Use the field or getter on the bean to provide the uri to consume from
|
String |
ref
Reference to endpoint to consume from
|
String |
uri
The uri to consume from
|
public abstract String context
CamelContext
to usepublic abstract String predicate
Apache Camel