public static class OkHttpRequestHandler.Builder extends java.lang.Object implements GeoApiContext.RequestHandler.Builder
OkHTTPRequestHandler
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GeoApiContext.RequestHandler |
build() |
void |
connectTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
proxy(java.net.Proxy proxy) |
void |
proxyAuthentication(java.lang.String proxyUserName,
java.lang.String proxyUserPassword) |
void |
queriesPerSecond(int maxQps) |
void |
readTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
writeTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
public void connectTimeout(long timeout, java.util.concurrent.TimeUnit unit)
connectTimeout
in interface GeoApiContext.RequestHandler.Builder
public void readTimeout(long timeout, java.util.concurrent.TimeUnit unit)
readTimeout
in interface GeoApiContext.RequestHandler.Builder
public void writeTimeout(long timeout, java.util.concurrent.TimeUnit unit)
writeTimeout
in interface GeoApiContext.RequestHandler.Builder
public void queriesPerSecond(int maxQps)
queriesPerSecond
in interface GeoApiContext.RequestHandler.Builder
public void proxy(java.net.Proxy proxy)
proxy
in interface GeoApiContext.RequestHandler.Builder
public void proxyAuthentication(java.lang.String proxyUserName, java.lang.String proxyUserPassword)
proxyAuthentication
in interface GeoApiContext.RequestHandler.Builder
public GeoApiContext.RequestHandler build()
build
in interface GeoApiContext.RequestHandler.Builder