Package com.algolia.search
Class ConfigBase
- java.lang.Object
-
- com.algolia.search.ConfigBase
-
- Direct Known Subclasses:
AnalyticsConfig,InsightsConfig,PersonalizationConfig,RecommendationConfig,SearchConfig
public abstract class ConfigBase extends Object
Algolia's clients common configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigBase.Builder<T extends ConfigBase.Builder<T>>Config base builder to ensure the immutability of the configuration.
-
Constructor Summary
Constructors Modifier Constructor Description protectedConfigBase(ConfigBase.Builder<?> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetApiKey()StringgetApplicationID()intgetBatchSize()CompressionTypegetCompressionType()IntegergetConnectTimeOut()Map<String,String>getDefaultHeaders()ExecutorServicegetExecutor()List<StatefulHost>getHosts()IntegergetReadTimeOut()booleangetUseSystemProxy()Deprecated.Please use a custom HttpAsyncClientBuilder when instantiating the ApacheHttpRequester instead.IntegergetWriteTimeOut()
-
-
-
Constructor Detail
-
ConfigBase
protected ConfigBase(ConfigBase.Builder<?> builder)
-
-
Method Detail
-
getApplicationID
public String getApplicationID()
-
getApiKey
public String getApiKey()
-
getUseSystemProxy
public boolean getUseSystemProxy()
Deprecated.Please use a custom HttpAsyncClientBuilder when instantiating the ApacheHttpRequester instead.Retrieve the settings which instructs the underlying Apache HTTP Client to use JVM/System settings for the proxy.
-
getBatchSize
public int getBatchSize()
-
getCompressionType
public CompressionType getCompressionType()
-
getReadTimeOut
public Integer getReadTimeOut()
-
getWriteTimeOut
public Integer getWriteTimeOut()
-
getConnectTimeOut
public Integer getConnectTimeOut()
-
getHosts
public List<StatefulHost> getHosts()
-
getExecutor
public ExecutorService getExecutor()
-
-