Uses of Class
com.pain001.sdk.RetryPolicy.Builder
-
Uses of RetryPolicy.Builder in com.pain001.sdk
Methods in com.pain001.sdk that return RetryPolicy.BuilderModifier and TypeMethodDescriptionstatic RetryPolicy.BuilderRetryPolicy.builder()Starts a builder with the defaults: 3 attempts, 200 ms initial and 5 s maximum backoff.RetryPolicy.Builder.initialBackoff(Duration initialBackoff) The wait before the first retry, before jitter (default 200 ms).RetryPolicy.Builder.maxAttempts(int maxAttempts) The number of attempts in all, including the first (default 3); 1 disables retries.RetryPolicy.Builder.maxBackoff(Duration maxBackoff) The longest wait before any retry (default 5 s), and the longest Retry-After honoured.