public interface ConfigurationBuilderBase<T>
Modifier and Type | Method and Description |
---|---|
OddsFeedConfiguration |
build()
Builds and returns a
OddsFeedConfiguration instance |
T |
loadConfigFromApplicationYml()
Sets the general configuration properties to values read from configuration file.
|
T |
loadConfigFromSdkProperties()
Sets the general configuration properties to values read from configuration file.
|
T |
setDefaultLocale(Locale defaultLocale)
Sets the default language for the translatable data
|
T |
setDesiredLocales(List<Locale> supportedLocales)
Sets the languages in which translatable data is available
|
T |
setDisabledProducers(List<Integer> producerIds)
Specifies the producers which should be disabled (i.e.
|
T |
setExceptionHandlingStrategy(ExceptionHandlingStrategy exceptionHandlingStrategy)
Sets the value specifying how exceptions thrown in the SDK are handled
|
T |
setHttpClientMaxConnPerRoute(Integer httpClientMaxConnPerRoute)
Sets maximum number of concurrent connections per route for http client.
|
T |
setHttpClientMaxConnTotal(Integer httpClientMaxConnTotal)
Sets connection pool size for http client.
|
T |
setHttpClientTimeout(Integer httpClientTimeout)
Sets the timeout which should be used on HTTP requests(seconds)
|
T |
setRecoveryHttpClientMaxConnPerRoute(Integer recoveryHttpClientMaxConnPerRoute)
Sets maximum number of concurrent connections per route for recovery http client
Should be set to low value to avoid resource overuse.
|
T |
setRecoveryHttpClientMaxConnTotal(Integer recoveryHttpClientMaxConnTotal)
Sets connection pool size for recovery http client.
|
T |
setRecoveryHttpClientTimeout(Integer recoveryHttpClientTimeout)
Sets the timeout which should be used on HTTP requests for recovery endpoints(seconds)
|
T |
setSdkNodeId(int nodeId)
Sets the node id used to separate between SDK instances associated with the same account
MTS customer must set this value! Use only positive numbers; negative are reserved for internal use.
|
T loadConfigFromSdkProperties()
ConfigurationBuilderBase
methods are set. Any values already set by methods on the current instance
are overridden.
The properties file should be named "UFSdkConfiguration.properties" and localed in the application resources folderConfigurationBuilderBase
derived instance used to set general configuration propertiesT loadConfigFromApplicationYml()
ConfigurationBuilderBase
methods are set. Any values already set by methods on the current instance
are overridden.
The YAML file should be named "application.yml" and localed in the application resources folderConfigurationBuilderBase
derived instance used to set general configuration propertiesT setDefaultLocale(Locale defaultLocale)
defaultLocale
- a Locale
which will be used as defaultConfigurationBuilderBase
derived instance used to set general configuration propertiesT setDesiredLocales(List<Locale> supportedLocales)
supportedLocales
- a List
of Locale
s in which translatable data should be availableConfigurationBuilderBase
derived instance used to set general configuration propertiesT setExceptionHandlingStrategy(ExceptionHandlingStrategy exceptionHandlingStrategy)
exceptionHandlingStrategy
- a ExceptionHandlingStrategy
enum specifying how exceptions thrown in the SDK are handledConfigurationBuilderBase
derived instance used to set general configuration propertiesT setSdkNodeId(int nodeId)
nodeId
- the node id to be setConfigurationBuilderBase
derived instance used to set general configuration propertiesT setDisabledProducers(List<Integer> producerIds)
producerIds
- the list of producer ids specifying the producers which should be disabledRecoveryConfigurationBuilder
derived instance used to set general configuration propertiesOddsFeedConfiguration build()
OddsFeedConfiguration
instanceOddsFeedConfiguration
instanceT setHttpClientTimeout(Integer httpClientTimeout)
ConfigurationBuilderBase
derived instance used to set general configuration propertiesT setHttpClientMaxConnTotal(Integer httpClientMaxConnTotal)
ConfigurationBuilderBase
derived instance used to set general configuration propertiesT setHttpClientMaxConnPerRoute(Integer httpClientMaxConnPerRoute)
ConfigurationBuilderBase
derived instance used to set general configuration propertiesT setRecoveryHttpClientTimeout(Integer recoveryHttpClientTimeout)
ConfigurationBuilderBase
derived instance used to set general configuration propertiesT setRecoveryHttpClientMaxConnTotal(Integer recoveryHttpClientMaxConnTotal)
ConfigurationBuilderBase
derived instance used to set general configuration propertiesT setRecoveryHttpClientMaxConnPerRoute(Integer recoveryHttpClientMaxConnPerRoute)
ConfigurationBuilderBase
derived instance used to set general configuration propertiesCopyright © 2016–2023. All rights reserved.