Apache Camel 计时器:“周期";与“固定利率"相比 [英] Apache Camel timer: "period" vs "fixedRate"
本文介绍了Apache Camel 计时器:“周期";与“固定利率"相比的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
"period" 和 "fixedRate" 的确切用法是什么?这真的有意义吗,因为如果我指定了周期"值,那么无论如何计时器都会在该间隔之后触发.那么fixedRate"标志的确切用途是什么?
我很困惑,请帮帮我!
解决方案
您可以在以下位置阅读 java.util.Timer 的 javadoc api:http://docs.oracle.com/javase/7/docs/api/java/util/Timer.htmlp>
他们解释了固定利率和延迟利率之间的区别.
What is the exact use of "period" and "fixedRate" together ? does it really make sense because if i specified the "period" value then anyways timer will trigger after that interval. So what is the exact use of "fixedRate" flag?
I am confused please help me out !
解决方案
You can read the javadoc api of the java.util.Timer at: http://docs.oracle.com/javase/7/docs/api/java/util/Timer.html
They explain the difference between fixed rate and delayed.
这篇关于Apache Camel 计时器:“周期";与“固定利率"相比的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文