Package org.apache.camel
Annotation Type Consume
-
@Retention(RUNTIME) @Documented @Target(METHOD) public @interface Consume
Subscribes a method to anEndpoint
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 messageExchange
is received from theEndpoint
then the Bean Integration mechanism is used to map the incomingMessage
to the method parameters.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description 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 fromString
uri
Deprecated.use value insteadString
value
The uri to consume from
-
-
-
Element Detail
-
value
String value
The uri to consume from- Default:
- ""
-
-
-
uri
@Deprecated String uri
Deprecated.use value insteadThe uri to consume from- Default:
- ""
-
-
-
property
String property
Use the field or getter on the bean to provide the uri to consume from- Default:
- ""
-
-
-
predicate
String predicate
Optional predicate (using simple language) to only consume if the predicate matches . This can be used to filter messages. Notice that only the first method that matches the predicate will be used. And if no predicate matches then the message is dropped.- Default:
- ""
-
-