public class UofConfigurationImpl extends Object implements UofConfiguration
Constructor and Description |
---|
UofConfigurationImpl(Function<UofConfiguration,WhoAmIReader> buildWhoAmIReader,
Function<UofConfiguration,ProducerDataProvider> buildProducerDataProvider) |
Modifier and Type | Method and Description |
---|---|
void |
acquireBookmakerDetailsAndProducerData() |
void |
checkAndUpdateConnectionSettings() |
String |
getAccessToken() |
UofAdditionalConfiguration |
getAdditional()
Get the additional configuration
|
UofApiConfiguration |
getApi()
Get the Api configuration
|
String |
getApiHostAndPort() |
BookmakerDetails |
getBookmakerDetails()
Get the bookmaker details
|
UofCacheConfiguration |
getCache()
Get the cache configuration
|
Locale |
getDefaultLanguage()
The locale used for any getter that returns localized Strings.
|
Environment |
getEnvironment() |
ExceptionHandlingStrategy |
getExceptionHandlingStrategy()
Returns the
ExceptionHandlingStrategy which will be used trough the SDK |
List<Locale> |
getLanguages()
Returns a
List of locales in which the data should be prefetched |
Integer |
getNodeId()
Returns the assigned SDK node identifier
MTS customer must set this value! Use only positive numbers; negative are reserved for internal use.
|
UofProducerConfiguration |
getProducer()
Get the producer and session configuration
|
UofRabbitConfiguration |
getRabbit()
Get the configuration related to connection to amqp broker
|
UofUsageConfiguration |
getUsage()
Gets the settings for usage exporter
|
void |
setAccessToken(String token) |
void |
setDefaultLanguage(Locale language) |
void |
setEnableUsageExport(boolean enableUsageExport) |
void |
setExceptionHandlingStrategy(ExceptionHandlingStrategy handlingStrategy) |
void |
setLanguages(List<Locale> languageList) |
void |
setNodeId(int id) |
String |
toString() |
void |
updateSdkEnvironment(Environment env) |
void |
validateMinimumSettings() |
public UofConfigurationImpl(Function<UofConfiguration,WhoAmIReader> buildWhoAmIReader, Function<UofConfiguration,ProducerDataProvider> buildProducerDataProvider)
public String getAccessToken()
getAccessToken
in interface UofConfiguration
public Environment getEnvironment()
getEnvironment
in interface UofConfiguration
public Locale getDefaultLanguage()
UofConfiguration
getDefaultLanguage
in interface UofConfiguration
public List<Locale> getLanguages()
UofConfiguration
List
of locales in which the data should be prefetchedgetLanguages
in interface UofConfiguration
List
of locales in which the data should be prefetchedpublic Integer getNodeId()
UofConfiguration
getNodeId
in interface UofConfiguration
public ExceptionHandlingStrategy getExceptionHandlingStrategy()
UofConfiguration
ExceptionHandlingStrategy
which will be used trough the SDKgetExceptionHandlingStrategy
in interface UofConfiguration
ExceptionHandlingStrategy
which will be used trough the SDKpublic BookmakerDetails getBookmakerDetails()
UofConfiguration
getBookmakerDetails
in interface UofConfiguration
public UofApiConfiguration getApi()
UofConfiguration
getApi
in interface UofConfiguration
public UofRabbitConfiguration getRabbit()
UofConfiguration
getRabbit
in interface UofConfiguration
public UofCacheConfiguration getCache()
UofConfiguration
getCache
in interface UofConfiguration
public UofProducerConfiguration getProducer()
UofConfiguration
getProducer
in interface UofConfiguration
public UofAdditionalConfiguration getAdditional()
UofConfiguration
getAdditional
in interface UofConfiguration
public UofUsageConfiguration getUsage()
UofConfiguration
getUsage
in interface UofConfiguration
public void setAccessToken(String token)
public void setDefaultLanguage(Locale language)
public void setExceptionHandlingStrategy(ExceptionHandlingStrategy handlingStrategy)
public void setNodeId(int id)
public void setEnableUsageExport(boolean enableUsageExport)
public void updateSdkEnvironment(Environment env)
public void checkAndUpdateConnectionSettings()
public String getApiHostAndPort()
public void validateMinimumSettings()
public void acquireBookmakerDetailsAndProducerData()
Copyright © 2016–2025. All rights reserved.