GeoApiContext.Builder |
GeoApiContext.Builder.apiKey(java.lang.String apiKey) |
Sets the API Key to use for authorizing requests.
|
GeoApiContext.Builder |
GeoApiContext.Builder.apiKeyInQuery(boolean apiKeyInQuery) |
Sets the API Key to use for authorizing requests.
|
GeoApiContext.Builder |
GeoApiContext.Builder.channel(java.lang.String channel) |
Sets the default channel for requests (can be overridden by requests).
|
GeoApiContext.Builder |
GeoApiContext.Builder.connectTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
Sets the default connect timeout for new connections.
|
GeoApiContext.Builder |
GeoApiContext.Builder.disableRetries() |
Disables retries completely, by setting max retries to 0 and retry timeout to 0.
|
GeoApiContext.Builder |
GeoApiContext.Builder.enterpriseCredentials(java.lang.String clientId,
java.lang.String cryptographicSecret) |
Sets the ClientID/Secret pair to use for authorizing requests.
|
GeoApiContext.Builder |
GeoApiContext.Builder.experienceId(java.lang.String... experienceId) |
|
GeoApiContext.Builder |
GeoApiContext.Builder.hostName(java.lang.String hostName) |
Overrides the base URL of the API endpoint.
|
GeoApiContext.Builder |
GeoApiContext.Builder.maxRetries(java.lang.Integer maxRetries) |
Sets the maximum number of times each retry-able errors will be retried.
|
GeoApiContext.Builder |
GeoApiContext.Builder.proxy(java.net.Proxy proxy) |
Sets the proxy for new connections.
|
GeoApiContext.Builder |
GeoApiContext.Builder.proxyAuthentication(java.lang.String proxyUserName,
java.lang.String proxyUserPassword) |
set authentication for proxy
|
GeoApiContext.Builder |
GeoApiContext.Builder.queryRateLimit(int maxQps) |
Sets the maximum number of queries that will be executed during a 1 second interval.
|
GeoApiContext.Builder |
GeoApiContext.Builder.readTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
Sets the default read timeout for new connections.
|
GeoApiContext.Builder |
GeoApiContext.Builder.requestHandlerBuilder(GeoApiContext.RequestHandler.Builder builder) |
Changes the RequestHandler.Builder strategy to change between the
OkHttpRequestHandler and the GaeRequestHandler.
|
GeoApiContext.Builder |
GeoApiContext.Builder.requestMetricsReporter(RequestMetricsReporter requestMetricsReporter) |
|
GeoApiContext.Builder |
GeoApiContext.Builder.retryTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
Sets the cumulative time limit for which retry-able errors will be retried.
|
GeoApiContext.Builder |
GeoApiContext.Builder.setIfExceptionIsAllowedToRetry(java.lang.Class<? extends ApiException> exception,
boolean allowedToRetry) |
Allows specific API exceptions to be retried or not retried.
|
GeoApiContext.Builder |
GeoApiContext.Builder.writeTimeout(long timeout,
java.util.concurrent.TimeUnit unit) |
Sets the default write timeout for new connections.
|