Class HTTPRequestConfig.Builder

    • Method Detail

      • requestHardTimeoutInSeconds

        public HTTPRequestConfig.Builder requestHardTimeoutInSeconds​(int requestHardTimeoutInSeconds)
        Sets the request hard timeout in seconds.
        Parameters:
        requestHardTimeoutInSeconds - the request hard timeout in seconds
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - if requestHardTimeoutInSeconds is not greater than 0
        Since:
        17.0.0
      • projectId

        public HTTPRequestConfig.Builder projectId​(java.lang.String projectId)
        Sets the project identifier used to collect monitoring events.
        Parameters:
        projectId - the project identifier
        Returns:
        this builder
        Since:
        17.0.0
      • create

        public static HTTPRequestConfig.Builder create()
        Returns a new HTTP request configuration builder.
        Returns:
        a new HTTP request configuration builder
        Since:
        17.0.0
      • build

        public HTTPRequestConfig build()
        Builds the HTTP request configuration.
        Returns:
        the HTTP request configuration
        Since:
        17.0.0