Interface BackoffStrategy

    • Method Detail

      • errorOccurred

        java.time.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