@NotThreadSafe public class HttpRetryPolicy extends Object
Logic is the following:
Instances of this class are not thread-safe and not reusable: each HTTP call requires its own instance.
Modifier and Type | Class and Description |
---|---|
static class |
HttpRetryPolicy.Factory |
Modifier and Type | Method and Description |
---|---|
long |
backoff() |
boolean |
shouldRetry(org.eclipse.jetty.client.api.Response response) |
public boolean shouldRetry(@Nullable org.eclipse.jetty.client.api.Response response)
public long backoff()
Copyright © 2016–2024. All rights reserved.