public class DefaultInsightsClient extends Object
| Constructor and Description |
|---|
DefaultInsightsClient() |
| Modifier and Type | Method and Description |
|---|---|
static InsightsClient |
create(InsightsConfig config)
Creates a default
InsightsClient with the given InsightsConfig. |
static InsightsClient |
create(String applicationID,
String apiKey)
Creates a default
InsightsClient with the given credentials. |
public static InsightsClient create(@Nonnull String applicationID, @Nonnull String apiKey)
InsightsClient with the given credentials. The default HttpClient
implementation is ApacheHttpRequesterapplicationID - The Algolia Application IDapiKey - The Algolia API KeyNullPointerException - If one of the following ApplicationID/ApiKey is nullIllegalArgumentException - If the ApplicationID or the APIKey are emptypublic static InsightsClient create(@Nonnull InsightsConfig config)
InsightsClient with the given InsightsConfig. 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 © 2019. All rights reserved.