| Package | Description |
|---|---|
| com.algolia.search |
| Modifier and Type | Class and Description |
|---|---|
class |
APIClientBuilder
Base class to create APIClient
|
class |
AsyncAPIClientBuilder
Base class to create AsyncAPIClient
|
| Modifier and Type | Method and Description |
|---|---|
GenericAPIClientBuilder |
APIClientBuilder.addExtraHeader(String key,
String value) |
GenericAPIClientBuilder |
AsyncAPIClientBuilder.addExtraHeader(String key,
String value) |
GenericAPIClientBuilder |
GenericAPIClientBuilder.addExtraHeader(String key,
String value)
Add extra headers to the requests
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setAnalyticsHost(String analyticsHost)
Set the analytics host
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setBuildHosts(List<String> buildHosts)
Set the hosts for indexing & building
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setConnectTimeout(int connectTimeout)
Set the connect timeout of the HTTP client
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setExtraHeader(String key,
String value)
Deprecated.
|
GenericAPIClientBuilder |
AsyncAPIClientBuilder.setHostDownTimeout(int hostDownTimeout) |
GenericAPIClientBuilder |
GenericAPIClientBuilder.setHostDownTimeout(int hostDownTimeout)
Set the retry timeout to detect if a host is down
|
GenericAPIClientBuilder |
APIClientBuilder.setMaxConnPerRoute(int maxConnPerRoute) |
GenericAPIClientBuilder |
AsyncAPIClientBuilder.setMaxConnPerRoute(int maxConnPerRoute) |
GenericAPIClientBuilder |
GenericAPIClientBuilder.setMaxConnPerRoute(int maxConnPerRoute)
Set the maximum of connection per route, only available for
ApacheAPIClientBuilder and
AsyncAPIClientBuilder |
GenericAPIClientBuilder |
AsyncAPIClientBuilder.setMaxConnTotal(int maxConnTotal) |
GenericAPIClientBuilder |
GenericAPIClientBuilder.setMaxConnTotal(int maxConnTotal)
Set the maximum of connection, only available for
ApacheAPIClientBuilder and AsyncAPIClientBuilder |
GenericAPIClientBuilder |
GenericAPIClientBuilder.setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Set the Jackson ObjectMapper, it overrides the default one and add 2 features: * Enables:
AUTO_CLOSE_JSON_CONTENT * Disables: FAIL_ON_UNKNOWN_PROPERTIES
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setQueryHosts(List<String> queryHosts)
Set the hosts for search & queries
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setReadTimeout(int readTimeout)
Set the read timeout of the HTTP client
|
GenericAPIClientBuilder |
GenericAPIClientBuilder.setUserAgent(String customAgent,
String customAgentVersion)
Customize the user agent
|
Copyright © 2018. All rights reserved.