Class RetryStatus

java.lang.Object
io.fluxcapacitor.common.RetryStatus

public class RetryStatus extends Object
Represents the current status of a retry operation.

RetryStatus is used internally by retry utilities (e.g., in TimingUtils) to track the retry attempt count, the last encountered exception, and timing metadata. It is passed to logging callbacks in RetryConfiguration for both success and failure cases.

See Also:
  • Constructor Details

    • RetryStatus

      public RetryStatus()
  • Method Details

    • afterRetry

      public RetryStatus afterRetry(Throwable exception)
      Produces a new RetryStatus based on this one, incrementing the retry count and updating the exception.
      Parameters:
      exception - the new exception encountered during retry
      Returns:
      a new RetryStatus instance with updated retry count and exception