Class HttpTransportOptions.Builder (2.36.1)

public static class HttpTransportOptions.Builder

Builder for HttpTransportOptions.

Inheritance

java.lang.Object > HttpTransportOptions.Builder

Methods

build()

public HttpTransportOptions build()
Returns
TypeDescription
HttpTransportOptions

setConnectTimeout(int connectTimeout)

public HttpTransportOptions.Builder setConnectTimeout(int connectTimeout)

Sets the timeout in milliseconds to establish a connection.

Parameter
NameDescription
connectTimeoutint

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

Returns
TypeDescription
HttpTransportOptions.Builder

the builder

setHttpTransportFactory(HttpTransportFactory httpTransportFactory)

public HttpTransportOptions.Builder setHttpTransportFactory(HttpTransportFactory httpTransportFactory)

Sets the HTTP transport factory.

Parameter
NameDescription
httpTransportFactorycom.google.auth.http.HttpTransportFactory
Returns
TypeDescription
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
NameDescription
readTimeoutint

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

Returns
TypeDescription
HttpTransportOptions.Builder

the builder