Class RetryHttpInitializerWrapper
java.lang.Object
com.google.jenkins.plugins.storage.client.RetryHttpInitializerWrapper
- All Implemented Interfaces:
com.google.api.client.http.HttpRequestInitializer
public class RetryHttpInitializerWrapper
extends Object
implements com.google.api.client.http.HttpRequestInitializer
RetryHttpInitializerWrapper will automatically retry upon RPC failures, preserving the
auto-refresh behavior of the Google Credentials.
Note: original source from RetryHttpInitializerWrapper.java
-
Constructor Summary
ConstructorsConstructorDescriptionRetryHttpInitializerWrapper
(com.google.api.client.auth.oauth2.Credential wrappedCredential) A constructor using the default Sleeper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(com.google.api.client.http.HttpRequest request) Initialize an HttpRequest.
-
Constructor Details
-
RetryHttpInitializerWrapper
public RetryHttpInitializerWrapper(com.google.api.client.auth.oauth2.Credential wrappedCredential) A constructor using the default Sleeper.- Parameters:
wrappedCredential
- the credential used to authenticate with a Google Cloud Platform project
-
-
Method Details
-
initialize
public void initialize(com.google.api.client.http.HttpRequest request) Initialize an HttpRequest.- Specified by:
initialize
in interfacecom.google.api.client.http.HttpRequestInitializer
- Parameters:
request
- an HttpRequest that should be initialized.
-