Expand description
ControlBus component for managing route lifecycle.
This component allows routes to control other routes in the Camel context using the ControlBus EIP pattern. It provides operations like start, stop, suspend, resume, and restart for routes.
§URI Format
controlbus:route?routeId=my-route&action=start
§Parameters
routeId: The ID of the route to operate on (optional, can come from exchange header)action: The action to perform:start,stop,suspend,resume,restart,status
§Example
ⓘ
// Start a route
from("timer:start?period=60000")
.to("controlbus:route?routeId=my-route&action=start");
// Get route status
from("direct:getStatus")
.to("controlbus:route?routeId=my-route&action=status")
.log("Status: ${body}");Structs§
- Control
BusComponent - The ControlBus component for managing route lifecycle.