Class UofConfigurationImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.cfg.UofConfigurationImpl
- All Implemented Interfaces:
UofConfiguration
This class is used to specify various configuration parameters for a session to the Sportradar
system(s)
-
Constructor Summary
ConstructorsConstructorDescriptionUofConfigurationImpl(Function<UofConfiguration, WhoAmIReader> buildWhoAmIReader, Function<UofConfiguration, ProducerDataProvider> buildProducerDataProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidGet the additional configurationgetApi()Get the Api configurationGet the bookmaker detailsgetCache()Get the cache configurationThe locale used for any getter that returns localized Strings.Returns theExceptionHandlingStrategywhich will be used through the SDKReturns aListof locales in which the data should be prefetchedReturns the assigned SDK node identifier MTS customer must set this value! Use only positive numbers; negative are reserved for internal use.Get the producer and session configurationGet the configuration related to connection to amqp brokergetUsage()Gets the settings for usage exportervoidsetAccessToken(String token) voidsetDefaultLanguage(Locale language) voidsetEnableUsageExport(boolean enableUsageExport) voidsetExceptionHandlingStrategy(ExceptionHandlingStrategy handlingStrategy) voidsetLanguages(List<Locale> languageList) voidsetNodeId(int id) toString()voidvoid
-
Constructor Details
-
UofConfigurationImpl
public UofConfigurationImpl(Function<UofConfiguration, WhoAmIReader> buildWhoAmIReader, Function<UofConfiguration, ProducerDataProvider> buildProducerDataProvider)
-
-
Method Details
-
getAccessToken
- Specified by:
getAccessTokenin interfaceUofConfiguration- Returns:
- your access token that is used to identify and verify your identity
-
getEnvironment
- Specified by:
getEnvironmentin interfaceUofConfiguration- Returns:
- The selected environment used for API-access
-
getDefaultLanguage
Description copied from interface:UofConfigurationThe locale used for any getter that returns localized Strings. (i.e. Sport name, Tournament name, Team name, Player name etc). The locale is English if not specified.- Specified by:
getDefaultLanguagein interfaceUofConfiguration- Returns:
- the locale
-
getLanguages
Description copied from interface:UofConfigurationReturns aListof locales in which the data should be prefetched- Specified by:
getLanguagesin interfaceUofConfiguration- Returns:
- a
Listof locales in which the data should be prefetched
-
getNodeId
Description copied from interface:UofConfigurationReturns the assigned SDK node identifier MTS customer must set this value! Use only positive numbers; negative are reserved for internal use.- Specified by:
getNodeIdin interfaceUofConfiguration- Returns:
- the assigned SDK node identifier
-
getExceptionHandlingStrategy
Description copied from interface:UofConfigurationReturns theExceptionHandlingStrategywhich will be used through the SDK- Specified by:
getExceptionHandlingStrategyin interfaceUofConfiguration- Returns:
- the
ExceptionHandlingStrategywhich will be used through the SDK
-
getBookmakerDetails
Description copied from interface:UofConfigurationGet the bookmaker details- Specified by:
getBookmakerDetailsin interfaceUofConfiguration- Returns:
- the bookmaker details
-
getApi
Description copied from interface:UofConfigurationGet the Api configuration- Specified by:
getApiin interfaceUofConfiguration- Returns:
- the Api configuration
-
getRabbit
Description copied from interface:UofConfigurationGet the configuration related to connection to amqp broker- Specified by:
getRabbitin interfaceUofConfiguration- Returns:
- the configuration related to connection to amqp broker
-
getCache
Description copied from interface:UofConfigurationGet the cache configuration- Specified by:
getCachein interfaceUofConfiguration- Returns:
- the cache configuration
-
getProducer
Description copied from interface:UofConfigurationGet the producer and session configuration- Specified by:
getProducerin interfaceUofConfiguration- Returns:
- the producer and session configuration
-
getAdditional
Description copied from interface:UofConfigurationGet the additional configuration- Specified by:
getAdditionalin interfaceUofConfiguration- Returns:
- the additional configuration
-
getUsage
Description copied from interface:UofConfigurationGets the settings for usage exporter- Specified by:
getUsagein interfaceUofConfiguration- Returns:
- the settings for usage exporter
-
setAccessToken
-
setDefaultLanguage
-
setLanguages
-
setExceptionHandlingStrategy
-
setNodeId
public void setNodeId(int id) -
setEnableUsageExport
public void setEnableUsageExport(boolean enableUsageExport) -
updateSdkEnvironment
-
checkAndUpdateConnectionSettings
public void checkAndUpdateConnectionSettings() -
getApiHostAndPort
-
validateMinimumSettings
public void validateMinimumSettings() -
acquireBookmakerDetailsAndProducerData
public void acquireBookmakerDetailsAndProducerData() -
toString
-