spring-integration - fixedDelay() 和 fixedRate() 的区别
问题描述
Pollers.fixedDelay(5000)
spring integration和Pollers.fixedRate(5000)
in spring integration和有什么区别Pollers
?
解决方案
固定利率和固定延迟之间存在显着差异。使用固定利率,无论上一次执行花费了多长时间,下一次执行都会在计划好的时候发生。使用固定延迟,下一次执行总是在上一次完成后 x 次发生,即使它被延迟了。
推荐阅读
- reactjs - 将 React-Redux 从 v1.x 转换为 v2.x
- javascript - 如何调用inner.html中的函数
- java - 如何在 laravel 中动态使用角色和权限
- ios - 从 imagePickerController 更改单元格的背景颜色
- python - 生成 numpy 数组或随机分布的 0 和 1 的最快方法
- keras - 在顺序层的 UpSampling2D 层中不理解填充
- javascript - 如何在不重新加载的情况下在同一浏览器上交替显示两个网页内容?
- javascript - 如何在 Firefox 控制台中等待 promise 解决
- c - 对它可以包含的元素数量没有预定义限制的数组
- html - 为什么我的代码中有这个额外的部分?