Package lumis.portal.httpintegration
Class HTTPRequestConfig.Builder
- java.lang.Object
-
- lumis.portal.httpintegration.HTTPRequestConfig.Builder
-
- Enclosing class:
- HTTPRequestConfig
@StableMinor(version="17.0", sinceVersion="17.0") public static class HTTPRequestConfig.Builder extends java.lang.Object
The HTTP request configuration builder.- Since:
- 17.0.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPRequestConfig
build()
Builds the HTTP request configuration.static HTTPRequestConfig.Builder
create()
Returns a new HTTP request configuration builder.HTTPRequestConfig.Builder
projectId(java.lang.String projectId)
Sets the project identifier used to collect monitoring events.HTTPRequestConfig.Builder
requestHardTimeoutInSeconds(int requestHardTimeoutInSeconds)
Sets the request hard timeout in seconds.
-
-
-
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
- ifrequestHardTimeoutInSeconds
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
-
-