public interface RetryPolicy
Modifier and Type | Interface and Description |
---|---|
static class |
RetryPolicy.Mode |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldBeRetried(URI uri,
int retryCount,
org.glassfish.jersey.client.ClientResponse response,
Throwable exception,
RetryPolicy.Mode mode)
Return true if the given arguments require a retry
|
boolean shouldBeRetried(URI uri, int retryCount, org.glassfish.jersey.client.ClientResponse response, Throwable exception, RetryPolicy.Mode mode)
uri
- request URIretryCount
- 0 based retry countresponse
- the client response (might be null)exception
- any exception (might be null)mode
- retry modeCopyright © 2020. All rights reserved.