Class ExponentialBackOffWithMaxRetries

java.lang.Object
org.springframework.util.backoff.ExponentialBackOff
org.springframework.kafka.support.ExponentialBackOffWithMaxRetries
All Implemented Interfaces:
BackOff

public class ExponentialBackOffWithMaxRetries extends ExponentialBackOff
Subclass of ExponentialBackOff that allows the specification of the maximum number of retries rather than the maximum elapsed time.
Since:
2.7.3
Author:
Gary Russell
  • Constructor Details

    • ExponentialBackOffWithMaxRetries

      public ExponentialBackOffWithMaxRetries(int maxRetries)
      Construct an instance that will calculate the setMaxElapsedTime(long) from the maxRetries.
      Parameters:
      maxRetries - the max retries.
  • Method Details