You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/11/23 09:24:03 UTC
[camel] 03/08: CAMEL-17223: camel-main - durationMaxAction to control whether to shutdown or stop all routes.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3b71f7e64c6d222b410fbb9331ceaafe8c734ef9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Nov 22 15:39:09 2021 +0100
CAMEL-17223: camel-main - durationMaxAction to control whether to shutdown or stop all routes.
---
.../java/org/apache/camel/impl/engine/DefaultRouteController.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRouteController.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRouteController.java
index 7245c95..eb270d2 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRouteController.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRouteController.java
@@ -95,6 +95,11 @@ public class DefaultRouteController extends ServiceSupport implements RouteContr
}
@Override
+ public void stopAllRoutes() throws Exception {
+ getInternalRouteController().stopAllRoutes();
+ }
+
+ @Override
public boolean isStartingRoutes() {
return getInternalRouteController().isStartingRoutes();
}