Class BackOffValuesGenerator
java.lang.Object
org.springframework.kafka.retrytopic.BackOffValuesGenerator
Generates the backoff values from the provided maxAttempts value and
BackOffPolicy
.- Since:
- 2.7
- Author:
- Tomaz Fernandes, Artem Bilan
-
Constructor Summary
ConstructorDescriptionBackOffValuesGenerator
(int providedMaxAttempts, org.springframework.retry.backoff.BackOffPolicy providedBackOffPolicy) -
Method Summary
-
Constructor Details
-
BackOffValuesGenerator
public BackOffValuesGenerator(int providedMaxAttempts, org.springframework.retry.backoff.BackOffPolicy providedBackOffPolicy)
-
-
Method Details
-
getMaxAttempts
public int getMaxAttempts(int providedMaxAttempts) -
generateValues
-