Class HttpTransportOptions.Builder (2.47.0)

public static class HttpTransportOptions.Builder

Builder for HttpTransportOptions.

Inheritance

java.lang.Object > HttpTransportOptions.Builder

Methods

build()

public HttpTransportOptions build()
Returns
Type Description
HttpTransportOptions

setConnectTimeout(int connectTimeout)

public HttpTransportOptions.Builder setConnectTimeout(int connectTimeout)

Sets the timeout in milliseconds to establish a connection.

Parameter
Name Description
connectTimeout int

connection timeout in milliseconds. 0 for an infinite timeout, a negative number for the default value (20000).

Returns
Type Description
HttpTransportOptions.Builder

the builder

setHttpTransportFactory(HttpTransportFactory httpTransportFactory)

public HttpTransportOptions.Builder setHttpTransportFactory(HttpTransportFactory httpTransportFactory)

Sets the HTTP transport factory.

Parameter
Name Description
httpTransportFactory com.google.auth.http.HttpTransportFactory
Returns
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.

Parameter
Name Description
readTimeout int

read timeout in milliseconds. 0 for an infinite timeout, a negative number for the default value (20000).

Returns
Type Description
HttpTransportOptions.Builder

the builder