| Package | Description |
|---|---|
| com.google.api.client.http |
Subset of HTTP 1.1 needed from the specification in
RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
|
| com.google.api.client.testing.util |
Beta
Testing utilities used for writing tests based on this library. |
| com.google.api.client.util |
General utilities used throughout this library.
|
| Modifier and Type | Method and Description |
|---|---|
BackOff |
HttpBackOffUnsuccessfulResponseHandler.getBackOff()
Returns the back-off.
|
BackOff |
HttpBackOffIOExceptionHandler.getBackOff()
Returns the back-off.
|
| Constructor and Description | |
|---|---|
HttpBackOffIOExceptionHandler(BackOff
Constructs a new instance from a
BackOff.
|
|
HttpBackOffUnsuccessfulResponseHandler(BackOff
Constructs a new instance from a
BackOff.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MockBackOff
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExponentialBackOff
Implementation of
BackOff that increases the back off period for each retry attempt using a randomization function that grows exponentially.
|
| Modifier and Type | Field and Description |
|---|---|
static BackOff |
BackOff.STOP_BACKOFF
Fixed back-off policy that always returns
#STOP for
nextBackOffMillis(), meaning that the operation should not be retried.
|
static BackOff |
BackOff.ZERO_BACKOFF
Fixed back-off policy whose back-off time is always zero, meaning that the operation is retried immediately without waiting.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
BackOffUtils.next(Sleeper
Runs the next iteration of the back-off policy, and returns whether to continue to retry the operation.
|