Class BackOffValuesGenerator
- java.lang.Object
-
- org.springframework.kafka.retrytopic.BackOffValuesGenerator
-
public class BackOffValuesGenerator extends java.lang.Object
Generates the backoff values from the provided maxAttempts value andBackOffPolicy
.- 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)
-