public class DefaultBackoffStrategy
extends java.lang.Object
implements org.apache.http.client.ConnectionBackoffStrategy
ConnectionBackoffStrategy backs off either for a raw
network socket or connection timeout or if the server explicitly
sends a 503 (Service Unavailable) response.| Constructor and Description |
|---|
DefaultBackoffStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldBackoff(HttpResponse resp) |
boolean |
shouldBackoff(java.lang.Throwable t) |
public boolean shouldBackoff(java.lang.Throwable t)
shouldBackoff in interface org.apache.http.client.ConnectionBackoffStrategypublic boolean shouldBackoff(HttpResponse resp)
shouldBackoff in interface org.apache.http.client.ConnectionBackoffStrategy