如何在apache camel路由中指定超时

问题描述 投票:0回答:1

我有一个apache camel路由我想指定该路由的超时,如果该路由没有完成,那个超时需要引发超时异常。 EQ:

<route id="id"> <from uri="xyz"/> //does some calculation call some other routes. </route>

java spring apache-camel dsl
1个回答
0
投票

您可以使用Camel异步API来实现您想要的。看看类似的问题(和解决方案)here

© www.soinside.com 2019 - 2024. All rights reserved.