| Package | Description |
|---|---|
| com.algolia.search |
| Modifier and Type | Class | Description |
|---|---|---|
class |
APIClientBuilder |
Base class to create APIClient
|
class |
AsyncAPIClientBuilder |
Base class to create AsyncAPIClient
|
| Modifier and Type | Method | 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.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 |
GenericAPIClientBuilder.setHostDownTimeout(int hostDownTimeout) |
Set the retry timeout to detect if a host is down
|
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.