public class DefaultAnalyticsClient extends Object
| Constructor and Description |
|---|
DefaultAnalyticsClient() |
| Modifier and Type | Method and Description |
|---|---|
static AnalyticsClient |
create(AnalyticsConfig config)
Creates a default
AnalyticsClient with the given AnalyticsConfig. |
static AnalyticsClient |
create(String applicationID,
String apiKey)
Creates a default
AnalyticsClient with the given credentials. |
public static AnalyticsClient create(@Nonnull String applicationID, @Nonnull String apiKey)
AnalyticsClient 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 AnalyticsClient create(@Nonnull AnalyticsConfig config)
AnalyticsClient with the given AnalyticsConfig. 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.