Interface BackoffStrategy

All Known Implementing Classes:
ExponentialBackoffStrategy

public interface BackoffStrategy
back-off strategy
  • Method Details

    • errorOccurred

      Duration errorOccurred()
      Informs back-off mechanism about failure
      Returns:
      back-off time adjusted by fail
    • resetBackOffState

      void resetBackOffState()
      Reset back off state. Call this method after successful attempts if you want to reuse the class
    • shouldRetry

      boolean shouldRetry()
      Returns:
      true if there are tries left