public class RetryHttpInitializer extends Object implements com.google.api.client.http.HttpRequestInitializer
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_CODE_TOO_MANY_REQUESTS |
Constructor and Description |
---|
RetryHttpInitializer(com.google.api.client.auth.oauth2.Credential credential,
String defaultUserAgent) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(com.google.api.client.http.HttpRequest request) |
public static final int STATUS_CODE_TOO_MANY_REQUESTS
public RetryHttpInitializer(com.google.api.client.auth.oauth2.Credential credential, String defaultUserAgent)
credential
- A credential which will be set as an interceptor on HttpRequests and
as the delegate for a CredentialOrBackoffResponsehandler.defaultUserAgent
- A String to set as the user-agent when initializing an HttpRequest
if the HttpRequest doesn't already have a user-agent header.Copyright © 2017. All rights reserved.