public class DefaultRecommendationClient extends Object
HttpTransport which wraps the HTTP Client This client allows to build typed requests and read
typed responses. Requests are made under the Algolia's retry-strategy. This client is intended to
be reused and it's thread-safe.| Constructor and Description |
|---|
DefaultRecommendationClient() |
| Modifier and Type | Method and Description |
|---|---|
static RecommendationClient |
create(RecommendationConfig config)
Creates a default
RecommendationClient with the given SearchConfig. |
static RecommendationClient |
create(String applicationID,
String apiKey,
String region)
Creates a
RecommendationClient with the given credentials The default HttpClient
implementation is ApacheHttpRequester |
public static RecommendationClient create(@Nonnull String applicationID, @Nonnull String apiKey, @Nonnull String region)
RecommendationClient with the given credentials The default HttpClient
implementation is ApacheHttpRequesterapplicationID - The Algolia Application IDapiKey - The Algolia API Keyregion - Region where your personalization data is stored and processed.NullPointerException - If one of the following ApplicationID/ApiKey is nullIllegalArgumentException - If the ApplicationID or the APIKey are emptypublic static RecommendationClient create(@Nonnull RecommendationConfig config)
RecommendationClient with the given SearchConfig. The default
HttpClient implementation is ApacheHttpRequesterconfig - The configuration allows you to advanced configuration of the clients such as
batch size or custom hosts and timeout.NullPointerException - If one of the following ApplicationID/ApiKey/Config is nullIllegalArgumentException - If the ApplicationID or the APIKey are emptyCopyright © 2020. All rights reserved.