Class BackOffValuesGenerator
java.lang.Object
org.springframework.kafka.retrytopic.BackOffValuesGenerator
Generates the back off values from the provided maxAttempts value and
BackOff.- Since:
- 2.7
- Author:
- Tomaz Fernandes, Artem Bilan, Borahm Lee, Yingzi Zhang
-
Constructor Summary
ConstructorsConstructorDescriptionBackOffValuesGenerator(int providedMaxAttempts, @Nullable BackOff providedBackOff) -
Method Summary
Modifier and TypeMethodDescriptionGenerate the back off values, stopping early if theBackOffis exhausted beforemaxAttemptsis reached.
-
Constructor Details
-
BackOffValuesGenerator
-
-
Method Details
-
generateValues
Generate the back off values, stopping early if theBackOffis exhausted beforemaxAttemptsis reached.- Returns:
- the back off values.
-