Uses of Class
org.microproxy.RetryBackoff
Packages that use RetryBackoff
-
Uses of RetryBackoff in org.microproxy
Methods in org.microproxy that return RetryBackoffModifier and TypeMethodDescriptiondefault RetryBackoffHttpFilters.chainedProxyRetryBackoff()The backoff between this request's connection attempts when a chained proxy (or the direct fallback) fails and the next route theChainedProxyManageroffered is tried, instead of the server's (HttpProxyServerBootstrap.withChainedProxyRetryBackoff(RetryBackoff)).HttpFiltersBuilder.Built.chainedProxyRetryBackoff()HttpFiltersChain.Chained.chainedProxyRetryBackoff()static RetryBackoffRetryBackoff.exponential(Duration initial, Duration max) Deterministic doubling: waitsinitialbefore the second attempt, then twice as long before each further one, capped atmax, without jitter.static RetryBackoffRetryBackoff.exponentialWithJitter(Duration initial, Duration max) Exponential backoff with "full jitter": before attemptn + 1, a uniformly random time from zero up to (not including) theexponential(java.time.Duration, java.time.Duration)waitmin(max, initial x 2^(n-1)).static RetryBackoffThe same wait before every retry, without jitter:exponential(delay, delay).static RetryBackoffRetryBackoff.none()No waiting: the next route is tried as soon as an attempt fails.RetryBackoff.unbudgeted()This policy without a budget: every wait it names is waited, however long they add up to (the route list and each wait'smax()still bound them), as LittleProxy forks that added a backoff did.RetryBackoff.withBudget(Duration total) This policy withtotalas the most that all waits of one request may add up to, in place of the default (the request's connect timeout, at most 30 seconds).RetryBackoff.withDefaultBudget()This policy with the default budget again: the request's connect timeout, at most 30 seconds.Methods in org.microproxy with parameters of type RetryBackoffModifier and TypeMethodDescriptionHttpFiltersBuilder.retryBackoff(RetryBackoff backoff) The backoff between these requests' attempts at the routes theChainedProxyManageroffered, instead of the server's (seeHttpFilters.chainedProxyRetryBackoff());none()retries at once.default HttpProxyServerBootstrapHttpProxyServerBootstrap.withChainedProxyRetryBackoff(RetryBackoff backoff) Waits between attempts when a connection through one chained proxy (or the direct fallback) fails and the next candidate from theChainedProxyManageris tried, asbackoffsays:exponential(java.time.Duration, java.time.Duration)for exact doubling waits,exponentialWithJitter(java.time.Duration, java.time.Duration)for random ones ("full jitter"),fixed(java.time.Duration)for the same wait every time.