Interface RetryPolicy

    • Method Detail

      • isExhausted

        boolean isExhausted()
        If the caller should stop retrying.
        Returns:
        TRUE if the caller should stop retrying
      • attempts

        int attempts()
        Attempts performed so far. Starts on 1, i.e. when no retry has been performed yet this returns 1.
        Returns:
        attempts performed so far.
      • increaseAttempt

        RetryPolicy increaseAttempt()
        Increase number of attempts.
        Returns:
        this policy after updating the internal state around attempts