我使用弹簧执行器停止应用程序(/关闭端点)。 我需要停止每5秒运行一次的Camel进程, / shutdown端点。
from("timer:myTimer?period=500")
.routeId("MyRouteId")
.shutdownRunningTask(ShutdownRunningTask.CompleteAllTasks)
.choice()
.when()
.method("camelStarter", "isRunning")//Here I need to check that the application is /shutdown