当 apache camel 由于 setDuration 退出时,如何以非零退出
How can I exit with non-zero when apache camel exits due to setDuration
当 camel 作业由于超过使用 setDuration() 方法设置的持续时间而退出时,我想以非零退出代码退出。
我测试了它以零退出代码退出,这不能帮助我确定进程退出是因为它成功还是因为超过最大持续时间。
你指的是 java 主 class 在那里你可以告诉它 运行 60 秒作为持续时间吗?
要使用其他一些退出代码退出,需要增强 Apache Camel 源代码。您可以在以下位置登录票证:http://camel.apache.org/support.html
当 camel 作业由于超过使用 setDuration() 方法设置的持续时间而退出时,我想以非零退出代码退出。
我测试了它以零退出代码退出,这不能帮助我确定进程退出是因为它成功还是因为超过最大持续时间。
你指的是 java 主 class 在那里你可以告诉它 运行 60 秒作为持续时间吗?
要使用其他一些退出代码退出,需要增强 Apache Camel 源代码。您可以在以下位置登录票证:http://camel.apache.org/support.html