此内容没有您所选择的语言版本。
Chapter 3. Defining Camel routes
Camel Extensions for Quarkus supports the Java DSL language to define Camel Routes.
3.1. Java DSL 复制链接链接已复制到粘贴板!
Extending org.apache.camel.builder.RouteBuilder and using the fluent builder methods available there is the most common way of defining Camel Routes. Here is a simple example of a route using the timer component:
3.1.1. Endpoint DSL 复制链接链接已复制到粘贴板!
Since Camel 3.0, you can use fluent builders also for defining Camel endpoints. The following is equivalent with the previous example:
Builder methods for all Camel components are available via camel-quarkus-core, but you still need to add the given component’s extension as a dependency for the route to work properly. In case of the above example, it would be camel-quarkus-timer.