[ https://issues.apache.org/jira/browse/CAMEL-22377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18016454#comment-18016454 ]
Raymond commented on CAMEL-22377: --------------------------------- A small note: In Assimbly there is also an option for rollback during a failed start. This means that when you for example start a group of 5 routes, and the 4th route has an error on start, the first three routes that are already started are rolled back (stopped). This ensures that only a complete group is started, and no routes are running while one of the routes is failed. This maybe useful for Camel route groups as well. > Extend routeController with lifecycle action by group > ----------------------------------------------------- > > Key: CAMEL-22377 > URL: https://issues.apache.org/jira/browse/CAMEL-22377 > Project: Camel > Issue Type: Improvement > Components: came-core > Affects Versions: 4.14.0 > Reporter: Raymond > Priority: Major > > Since 4.14.0, the current routeController API can perform actions: > 1. Per route > 2. Per group > 3. Per context (all routes) > The group now only has start and stop. I think it could be enhanced with: > 1. suspendRouteGroup(String routeGroup) > 2. resumeRouteGroup(String routeGroup) > 3. stopRouteGroup(String routeId, long timeout, TimeUnit timeUnit) > 4. suspendRouteGroup(String routeId, long timeout, TimeUnit timeUnit) > In this way, it's on par with actions per route or context. -- This message was sent by Atlassian Jira (v8.20.10#820010)