Class BackOffValuesGenerator


  • public class BackOffValuesGenerator
    extends java.lang.Object
    Generates the backoff values from the provided maxAttempts value and BackOffPolicy.
    Since:
    2.7
    Author:
    Tomaz Fernandes
    • Constructor Summary

      Constructors 
      Constructor Description
      BackOffValuesGenerator​(int providedMaxAttempts, org.springframework.retry.backoff.BackOffPolicy providedBackOffPolicy)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Long> generateValues()  
      int getMaxAttemps​(int providedMaxAttempts)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BackOffValuesGenerator

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

      • getMaxAttemps

        public int getMaxAttemps​(int providedMaxAttempts)
      • generateValues

        public java.util.List<java.lang.Long> generateValues()