Class RetryHttpInitializerOptions

    • Constructor Detail

      • RetryHttpInitializerOptions

        public RetryHttpInitializerOptions()
    • Method Detail

      • getDefaultUserAgent

        @Nullable
        public abstract String getDefaultUserAgent()
        A String to set as the user-agent when initializing an HTTP request if it doesn't already have a "User-Agent" header.
      • getHttpHeaders

        public abstract com.google.common.collect.ImmutableMap<String,​String> getHttpHeaders()
        An additional HTTP headers to set in an HTTP request.
      • getConnectTimeout

        public abstract Duration getConnectTimeout()
        A connection timeout - maximum time to wait until connection will be established.
      • getReadTimeout

        public abstract Duration getReadTimeout()
        A read timeout from an established connection - maximum time to wait for a read form an established connection to finish.
      • getMaxRequestRetries

        public abstract int getMaxRequestRetries()
        A max number of retries for an HTTP request.