-
public final class StreamRetryAttemptInfoSnapshot describing the state of the current retry loop iteration.
Instances are delivered to the
blockpassed into StreamRetryProcessor.retry before each attempt so callers can log, alter metrics, or branch based on the retry count.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerattemptprivate final LongcurrentDelayprivate final ThrowablepreviousAttemptErrorprivate final StreamRetryPolicypolicy
-
Constructor Summary
Constructors Constructor Description StreamRetryAttemptInfo(Integer attempt, Long currentDelay, Throwable previousAttemptError, StreamRetryPolicy policy)
-
Method Summary
Modifier and Type Method Description final IntegergetAttempt()final LonggetCurrentDelay()final ThrowablegetPreviousAttemptError()final StreamRetryPolicygetPolicy()-
-
Constructor Detail
-
StreamRetryAttemptInfo
StreamRetryAttemptInfo(Integer attempt, Long currentDelay, Throwable previousAttemptError, StreamRetryPolicy policy)
-
-
Method Detail
-
getAttempt
final Integer getAttempt()
-
getCurrentDelay
final Long getCurrentDelay()
-
getPreviousAttemptError
final Throwable getPreviousAttemptError()
-
getPolicy
final StreamRetryPolicy getPolicy()
-
-
-
-