All Implemented Interfaces:
Serializable

public final class RetryInterruptedException extends ResilientException
Thrown by the Retry pattern when the thread is interrupted while waiting for a backoff delay between attempts. Distinct from RetryExhaustedException (the attempt budget ran out) and RetryRejectedException (shouldRetry declined to retry): interruption stops the loop for a reason unrelated to either. The cause is the last failure that was about to be retried, not the interrupt itself — the interrupt is a control signal, not a failure. The thread's interrupt status is restored before this exception is thrown.
See Also:
  • Constructor Details

    • RetryInterruptedException

      public RetryInterruptedException(int attemptCount, Throwable cause)
  • Method Details

    • attemptCount

      public int attemptCount()
      Total number of attempts made before the interrupt arrived, including the first call.