Throttling in Camel

人走茶凉 提交于 2019-12-07 08:13:25

You can use a route policy for that. The you implement logic in that route policy to suspend/resume the route to throttle the route.

We have a out of the box policy that is using the number of inflight messages in Camel as its metrics. But you should add logic to check that queue if its empty or not.

The documentation for route policy is here

And the code for the inflight throttler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!