ConnectionBackoffStrategy backs off either for a raw
network socket or connection timeout or if the server explicitly
sends a 429 (Too Many Requests) or a 503 (Service Unavailable) response.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | shouldBackoff(final Throwable
the t)Throwable that happenedImplements org. Throwable as
a result of request execution should result in a backoff
signal.
|
| public boolean | shouldBackoff(final HttpResponse
the response)HttpResponse that was receivedImplements org. HttpResponse as
a result of request execution should result in a backoff
signal.
|
| DefaultBackoffStrategy | back to summary |
|---|---|
| public DefaultBackoffStrategy() | |
| shouldBackoff | back to summary |
|---|---|
| public boolean shouldBackoff(final Throwable t) Implements org. Doc from org. Determines whether seeing the given | |
| shouldBackoff | back to summary |
|---|---|
| public boolean shouldBackoff(final HttpResponse response) Implements org. Doc from org. Determines whether receiving the given
| |