Difference between fixedDelay() and fixedRate()

3.5k Views Asked by At

What is the difference between Pollers.fixedDelay(5000) and Pollers.fixedRate(5000) in spring integrations Pollers?

1

There are 1 best solutions below

1
IMParasharG On

There is a significant difference between fixed-rate and fixed-delay. With fixed-rate, it doesn’t matter how long the previous execution took, the next execution will happen when it was scheduled. With fixed-delay, the next execution will always happen x time after the previous finished, even if it was delayed.

More info here