public static class HttpTransportOptions.Builder
Builder for HttpTransportOptions
.
Methods
build()
public HttpTransportOptions build()
Type | Description |
HttpTransportOptions |
setConnectTimeout(int connectTimeout)
public HttpTransportOptions.Builder setConnectTimeout(int connectTimeout)
Sets the timeout in milliseconds to establish a connection.
Name | Description |
connectTimeout | int connection timeout in milliseconds. 0 for an infinite timeout, a negative number for the default value (20000). |
Type | Description |
HttpTransportOptions.Builder | the builder |
setHttpTransportFactory(HttpTransportFactory httpTransportFactory)
public HttpTransportOptions.Builder setHttpTransportFactory(HttpTransportFactory httpTransportFactory)
Sets the HTTP transport factory.
Name | Description |
httpTransportFactory | com.google.auth.http.HttpTransportFactory |
Type | Description |
HttpTransportOptions.Builder | the builder |
setReadTimeout(int readTimeout)
public HttpTransportOptions.Builder setReadTimeout(int readTimeout)
Sets the timeout in milliseconds to read data from an established connection.
Name | Description |
readTimeout | int read timeout in milliseconds. 0 for an infinite timeout, a negative number for the default value (20000). |
Type | Description |
HttpTransportOptions.Builder | the builder |