Class RetryDecision
java.lang.Object
com.linecorp.armeria.client.retry.RetryDecision
public final class RetryDecision extends Object
A
RetryDecision
that determines whether a RetryRule
retries with a Backoff
,
skips the current RetryRule
or no retries.-
Method Summary
Modifier and Type Method Description static RetryDecision
next()
Returns aRetryDecision
that skips the currentRetryRule
and tries to retry with the nextRetryRule
.static RetryDecision
noRetry()
Returns aRetryDecision
that never retries.static RetryDecision
retry(Backoff backoff)
Returns aRetryDecision
that retries with the specifiedBackoff
.String
toString()
-
Method Details
-
retry
Returns aRetryDecision
that retries with the specifiedBackoff
. -
noRetry
Returns aRetryDecision
that never retries. -
next
Returns aRetryDecision
that skips the currentRetryRule
and tries to retry with the nextRetryRule
. -
toString
-