Class 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 Detail

      • 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 Detail

      • initialize

        public void initialize​(com.google.api.client.http.HttpRequest request)
        Initialize an HttpRequest.
        Specified by:
        initialize in interface com.google.api.client.http.HttpRequestInitializer
        Parameters:
        request - an HttpRequest that should be initialized.