| 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 |
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)
Set extra headers to the requests
|
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 © 2017. All rights reserved.