Class RetryHttpInitializerWrapper

  • All Implemented Interfaces:
    com.google.api.client.http.HttpRequestInitializer

    public class RetryHttpInitializerWrapper
    extends java.lang.Object
    implements com.google.api.client.http.HttpRequestInitializer
    RetryHttpInitializerWrapper will automatically retry upon RPC failures, preserving the auto-refresh behavior of the Google Credentials.
    • Constructor Summary

      Constructors 
      Constructor Description
      RetryHttpInitializerWrapper​(com.google.api.client.auth.oauth2.Credential wrappedCredential)
      A constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(com.google.api.client.http.HttpRequest request)
      Initializes the given request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryHttpInitializerWrapper

        public RetryHttpInitializerWrapper​(com.google.api.client.auth.oauth2.Credential wrappedCredential)
        A constructor.
        Parameters:
        wrappedCredential - Credential which will be wrapped and used for providing auth header.
    • Method Detail

      • initialize

        public final void initialize​(com.google.api.client.http.HttpRequest request)
        Initializes the given request.
        Specified by:
        initialize in interface com.google.api.client.http.HttpRequestInitializer