GeoApiContext.RequestHandler.Builder
public static class OkHttpRequestHandler.Builder extends java.lang.Object implements GeoApiContext.RequestHandler.Builder
OkHTTPRequestHandler
.Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
GeoApiContext.RequestHandler |
build() |
|
OkHttpRequestHandler.Builder |
connectTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
|
okhttp3.OkHttpClient.Builder |
okHttpClientBuilder() |
Gets a reference to the OkHttpClient.Builder used to build the OkHttpRequestHandler's
internal OkHttpClient.
|
OkHttpRequestHandler.Builder |
proxy(java.net.Proxy proxy) |
|
OkHttpRequestHandler.Builder |
proxyAuthentication(java.lang.String proxyUserName,
java.lang.String proxyUserPassword) |
|
OkHttpRequestHandler.Builder |
queriesPerSecond(int maxQps) |
|
OkHttpRequestHandler.Builder |
readTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
|
OkHttpRequestHandler.Builder |
writeTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
public OkHttpRequestHandler.Builder connectTimeout(long timeout, java.util.concurrent.TimeUnit unit)
connectTimeout
in interface GeoApiContext.RequestHandler.Builder
public OkHttpRequestHandler.Builder readTimeout(long timeout, java.util.concurrent.TimeUnit unit)
readTimeout
in interface GeoApiContext.RequestHandler.Builder
public OkHttpRequestHandler.Builder writeTimeout(long timeout, java.util.concurrent.TimeUnit unit)
writeTimeout
in interface GeoApiContext.RequestHandler.Builder
public OkHttpRequestHandler.Builder queriesPerSecond(int maxQps)
queriesPerSecond
in interface GeoApiContext.RequestHandler.Builder
public OkHttpRequestHandler.Builder proxy(java.net.Proxy proxy)
proxy
in interface GeoApiContext.RequestHandler.Builder
public OkHttpRequestHandler.Builder proxyAuthentication(java.lang.String proxyUserName, java.lang.String proxyUserPassword)
proxyAuthentication
in interface GeoApiContext.RequestHandler.Builder
public okhttp3.OkHttpClient.Builder okHttpClientBuilder()
public GeoApiContext.RequestHandler build()
build
in interface GeoApiContext.RequestHandler.Builder