ServiceT - the service subclassServiceRpcT - the spi-layer class corresponding to the serviceOptionsT - the HttpServiceOptions subclass corresponding to the serviceB - the ServiceOptions builderprotected abstract static class HttpServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends HttpServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>> extends ServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>
HttpServiceOptions.| Modifier | Constructor and Description |
|---|---|
protected |
HttpServiceOptions.Builder() |
protected |
HttpServiceOptions.Builder(HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT> options) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT> |
build() |
B |
connectTimeout(int connectTimeout)
Sets the timeout in milliseconds to establish a connection.
|
B |
httpTransportFactory(HttpServiceOptions.HttpTransportFactory httpTransportFactory)
Sets the HTTP transport factory.
|
B |
readTimeout(int readTimeout)
Sets the timeout in milliseconds to read data from an established connection.
|
protected B |
self() |
authCredentials, clock, host, projectId, retryParams, serviceFactory, serviceRpcFactoryprotected HttpServiceOptions.Builder()
protected HttpServiceOptions.Builder(HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT> options)
protected abstract HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT> build()
build in class ServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends HttpServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>>protected B self()
self in class ServiceOptions.Builder<ServiceT extends Service<OptionsT>,ServiceRpcT,OptionsT extends HttpServiceOptions<ServiceT,ServiceRpcT,OptionsT>,B extends HttpServiceOptions.Builder<ServiceT,ServiceRpcT,OptionsT,B>>public B httpTransportFactory(HttpServiceOptions.HttpTransportFactory httpTransportFactory)
public B connectTimeout(int connectTimeout)
connectTimeout - connection timeout in milliseconds. 0 for an infinite timeout, a
negative number for the default value (20000).public B readTimeout(int readTimeout)
readTimeout - read timeout in milliseconds. 0 for an infinite timeout, a negative number
for the default value (20000).Copyright © 2016 Google. All rights reserved.