Interface ConfigurationBuilderBase<T>
- All Known Subinterfaces:
ConfigurationBuilder,CustomConfigurationBuilder,RecoveryConfigurationBuilder<T>
public interface ConfigurationBuilderBase<T>
Base method definitions for custom and general configuration builders
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns aUofConfigurationinstanceSets the general configuration properties to values read from configuration file.Sets the general configuration properties to values read from configuration file.setDefaultLanguage(Locale defaultLanguage) Sets the default language for the translatable datasetDesiredLanguages(List<Locale> desiredLanguages) Sets the languages in which translatable data is availablesetDisabledProducers(List<Integer> producerIds) Specifies the producers which should be disabled (i.e.setExceptionHandlingStrategy(ExceptionHandlingStrategy exceptionHandlingStrategy) Sets the value specifying how exceptions thrown in the SDK are handledsetNodeId(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.
-
Method Details
-
loadConfigFromSdkProperties
T loadConfigFromSdkProperties()Sets the general configuration properties to values read from configuration file. Only value which can be set throughConfigurationBuilderBasemethods 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 folder- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
loadConfigFromApplicationYml
T loadConfigFromApplicationYml()Sets the general configuration properties to values read from configuration file. Only value which can be set throughConfigurationBuilderBasemethods 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 folder- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setDefaultLanguage
Sets the default language for the translatable data- Parameters:
defaultLanguage- aLocalewhich will be used as default- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setDesiredLanguages
Sets the languages in which translatable data is available- Parameters:
desiredLanguages- aListofLocales in which translatable data should be available- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setExceptionHandlingStrategy
Sets the value specifying how exceptions thrown in the SDK are handled- Parameters:
exceptionHandlingStrategy- aExceptionHandlingStrategyenum specifying how exceptions thrown in the SDK are handled- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setNodeId
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.- Parameters:
nodeId- the node id to be set- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setDisabledProducers
Specifies the producers which should be disabled (i.e. no recovery, messages get discarded, ...)- Parameters:
producerIds- the list of producer ids specifying the producers which should be disabled- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
build
UofConfiguration build()Builds and returns aUofConfigurationinstance- Returns:
- the constructed
UofConfigurationinstance
-