Class RetryStatus
java.lang.Object
io.fluxzero.common.RetryStatus
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterRetry(Throwable exception) Produces a newRetryStatusbased on this one, incrementing the retry count and updating the exception.
-
Constructor Details
-
RetryStatus
public RetryStatus()
-
-
Method Details
-
afterRetry
Produces a newRetryStatusbased on this one, incrementing the retry count and updating the exception.- Parameters:
exception- the new exception encountered during retry- Returns:
- a new
RetryStatusinstance with updated retry count and exception
-