Package io.fluxcapacitor.common
Class RetryStatus
java.lang.Object
io.fluxcapacitor.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 newRetryStatus
based on this one, incrementing the retry count and updating the exception.
-
Constructor Details
-
RetryStatus
public RetryStatus()
-
-
Method Details
-
afterRetry
Produces a newRetryStatus
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
-