public static class HttpTransportOptions.Builder extends Object
HttpTransportOptions
.Modifier and Type | Method and Description |
---|---|
HttpTransportOptions |
build() |
HttpTransportOptions.Builder |
setConnectTimeout(int connectTimeout)
Sets the timeout in milliseconds to establish a connection.
|
HttpTransportOptions.Builder |
setHttpTransportFactory(HttpTransportFactory httpTransportFactory)
Sets the HTTP transport factory.
|
HttpTransportOptions.Builder |
setReadTimeout(int readTimeout)
Sets the timeout in milliseconds to read data from an established connection.
|
public HttpTransportOptions build()
public HttpTransportOptions.Builder setHttpTransportFactory(HttpTransportFactory httpTransportFactory)
public HttpTransportOptions.Builder setConnectTimeout(int connectTimeout)
connectTimeout
- connection timeout in milliseconds. 0 for an infinite timeout, a
negative number for the default value (20000).public HttpTransportOptions.Builder setReadTimeout(int readTimeout)
readTimeout
- read timeout in milliseconds. 0 for an infinite timeout, a negative number
for the default value (20000).Copyright © 2019 Google LLC. All rights reserved.