Class BackOffValuesGenerator

java.lang.Object
org.springframework.kafka.retrytopic.BackOffValuesGenerator

public class BackOffValuesGenerator extends Object
Generates the backoff values from the provided maxAttempts value and BackOffPolicy.
Since:
2.7
Author:
Tomaz Fernandes, Artem Bilan, Borahm Lee
  • Constructor Details

    • BackOffValuesGenerator

      public BackOffValuesGenerator(int providedMaxAttempts, org.springframework.retry.backoff.BackOffPolicy providedBackOffPolicy)
  • Method Details

    • getMaxAttempts

      public int getMaxAttempts(int providedMaxAttempts)
    • generateValues

      public List<Long> generateValues()