1

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

Guru
  • 2,739
  • 1
  • 25
  • 27

1 Answers1

5

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

IMParasharG
  • 1,869
  • 1
  • 15
  • 26
  • 3
    One small clarification; with `fixedRate`, the next poll will happen when it was scheduled or immediately, if the current poll task takes longer than that rate. In other words, there is only ever one poll in process at a time. – Gary Russell Mar 18 '19 at 13:06