Package com.shri.restinpeace.annotation.retry
package com.shri.restinpeace.annotation.retry
-
Annotation TypesClassDescriptionRe-issues a request that fails with a transport error (a connection refused, a timeout) or with one of
Retry.retryOnStatus(), up toRetry.times()attempts total, waitingRetry.delayMillis()between attempts and multiplying that wait byRetry.backoffMultiplier()after each one - unless the failed response itself carries aRetry-Afterheader, which takes priority over the computed delay for that one wait (seeRetry.delayMillis()), andRetry.jitterFactor()randomizes each computed delay to avoid many callers retrying in lockstep.