-
public final class ShouldRetrySpec
-
-
Field Summary
Fields Modifier and Type Field Description private Longlatencyprivate final Integerattemptprivate final IntegerretryCountprivate final URIuriprivate final InetAddressinetAddressprivate final LongmaxTimeout
-
Constructor Summary
Constructors Constructor Description ShouldRetrySpec(Integer attempt, Integer retryCount, URI uri, InetAddress inetAddress, Long maxTimeout)
-
Method Summary
Modifier and Type Method Description final LonggetLatency()final UnitsetLatency(Long latency)final IntegergetAttempt()final IntegergetRetryCount()final URIgetUri()final InetAddressgetInetAddress()final LonggetMaxTimeout()final BooleanretryIf(Function1<Throwable, Boolean> condition)final Voidretry(String comment, Integer httpCode)final BooleanshouldRetry(Throwable throwable)-
-
Constructor Detail
-
ShouldRetrySpec
ShouldRetrySpec(Integer attempt, Integer retryCount, URI uri, InetAddress inetAddress, Long maxTimeout)
-
-
Method Detail
-
getLatency
final Long getLatency()
-
setLatency
final Unit setLatency(Long latency)
-
getAttempt
final Integer getAttempt()
-
getRetryCount
final Integer getRetryCount()
-
getInetAddress
final InetAddress getInetAddress()
-
getMaxTimeout
final Long getMaxTimeout()
-
shouldRetry
final Boolean shouldRetry(Throwable throwable)
-
-
-
-