Interface ConfigurationBuilderBase<T>

All Known Subinterfaces:
ConfigurationBuilder, CustomConfigurationBuilder, RecoveryConfigurationBuilder<T>

public interface ConfigurationBuilderBase<T>
Base method definitions for custom and general configuration builders
  • Method Details

    • loadConfigFromSdkProperties

      T loadConfigFromSdkProperties()
      Sets the general configuration properties to values read from configuration file. Only value which can be set through 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 folder
      Returns:
      a ConfigurationBuilderBase derived 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 through 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 folder
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setDefaultLanguage

      T setDefaultLanguage(Locale defaultLanguage)
      Sets the default language for the translatable data
      Parameters:
      defaultLanguage - a Locale which will be used as default
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setDesiredLanguages

      T setDesiredLanguages(List<Locale> desiredLanguages)
      Sets the languages in which translatable data is available
      Parameters:
      desiredLanguages - a List of Locales in which translatable data should be available
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setExceptionHandlingStrategy

      T setExceptionHandlingStrategy(ExceptionHandlingStrategy exceptionHandlingStrategy)
      Sets the value specifying how exceptions thrown in the SDK are handled
      Parameters:
      exceptionHandlingStrategy - a ExceptionHandlingStrategy enum specifying how exceptions thrown in the SDK are handled
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setNodeId

      T setNodeId(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.
      Parameters:
      nodeId - the node id to be set
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setDisabledProducers

      T setDisabledProducers(List<Integer> producerIds)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • build

      Builds and returns a UofConfiguration instance
      Returns:
      the constructed UofConfiguration instance