public class StandardRetryPolicy extends Object implements RetryPolicy
RetryPolicy.Mode| Constructor and Description |
|---|
StandardRetryPolicy() |
StandardRetryPolicy(int maxRetries) |
| 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
|
public StandardRetryPolicy()
public StandardRetryPolicy(int maxRetries)
public boolean shouldBeRetried(URI uri, int retryCount, org.glassfish.jersey.client.ClientResponse response, Throwable exception, RetryPolicy.Mode mode)
RetryPolicyshouldBeRetried in interface RetryPolicyuri - 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.