Class SdkInternalConfiguration

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.SdkInternalConfiguration

public class SdkInternalConfiguration extends Object
The internal SDK configuration
  • Constructor Details

  • Method Details

    • getMessagingHost

      public String getMessagingHost()
      Returns:
      Host / IP for connection as provided by Sportradar
    • getApiHost

      public String getApiHost()
      Returns:
      The Sportradar host used for API-access
    • getApiPort

      public int getApiPort()
    • getApiHostAndPort

      public String getApiHostAndPort()
    • getEnvironment

      public Environment getEnvironment()
      Returns:
      The selected environment used for API-access
    • getLongestInactivityInterval

      public int getLongestInactivityInterval()
      Returns:
      The longest inactivity interval between producer alive messages(seconds)
    • getMaxRecoveryExecutionSeconds

      public int getMaxRecoveryExecutionSeconds()
      Returns:
      The max recovery execution time, after which the recovery request is repeated(seconds)
    • getMinIntervalBetweenRecoveryRequests

      public int getMinIntervalBetweenRecoveryRequests()
      Returns:
      The minimal interval between recovery requests initiated by alive messages(seconds)
    • getAccessToken

      public String getAccessToken()
      Returns:
      your access token that is used to identify and verify your identity
    • getUseMessagingSsl

      public boolean getUseMessagingSsl()
      Gets a value indicating whether SSL should be used when connecting to AMQP broker
      Returns:
      a value indicating whether SSL should be used when connecting to AMQP broker
    • getUseApiSsl

      public boolean getUseApiSsl()
      Gets a value indicating whether SSL should be used when requesting API endpoints
      Returns:
      a value indicating whether SSL should be used when requesting API endpoints
    • getPort

      public int getPort()
      Gets the port used to connect to AMQP broker
      Returns:
      the port used to connect to AMQP broker
    • getDefaultLocale

      public Locale getDefaultLocale()
      The default locale used for any getter that returns localized Strings. (i.e. Sport name, Tournament name, Team name, Player name etc). The default locale is English if not specified.
      Returns:
      the default locale
    • getDesiredLocales

      public List<Locale> getDesiredLocales()
      Returns a List of locales in which the data should be prefetched
      Returns:
      - a List of locales in which the data should be prefetched
    • isReplaySession

      public boolean isReplaySession()
      An indication if the current configuration is setup for use in a replay session
      Returns:
      - an indication if the current configuration is setup for use in a replay session
    • getMessagingUsername

      public String getMessagingUsername()
      Returns the username of the broker to which you are currently connecting - this field should be null/blank if you are connecting to the default Sportradar AMQP servers
      Returns:
      the username of the broker to which you are connecting
    • getMessagingPassword

      public String getMessagingPassword()
      Returns the password of the broker to which you are connecting - this field should be null/blank if connecting to the default Sportradar AMQP servers
      Returns:
      - the password of the broker to which you are connecting
    • getMessagingVirtualHost

      public String getMessagingVirtualHost()
      Returns the custom set messaging virtual host
      Returns:
      the custom messaging virtual host
    • getExceptionHandlingStrategy

      public ExceptionHandlingStrategy getExceptionHandlingStrategy()
      Returns an indication on how should be the SDK exceptions handled
      Returns:
      an indication on how should be the SDK exceptions handled
    • getSdkNodeId

      public Integer getSdkNodeId()
      Returns the assigned SDK node identifier
      Returns:
      the assigned SDK node identifier
    • isCleanTrafficLogEntriesEnabled

      public boolean isCleanTrafficLogEntriesEnabled()
      Indicates if the received xml payloads should be cleaned from special characters such as new lines or not
      Returns:
      true if the message entries should be cleaned; otherwise false
    • getHttpClientTimeout

      public int getHttpClientTimeout()
      Indicates the timeout which should be used on HTTP requests(seconds)
      Returns:
      the timeout which should be used when performing HTTP requests(seconds)
    • getRecoveryHttpClientTimeout

      public int getRecoveryHttpClientTimeout()
      Indicates the timeout which should be used on HTTP requests for recovery endpoints(seconds)
      Returns:
      the timeout which should be used when performing HTTP requests for recovery endpoints(seconds)
    • getDisabledProducers

      public List<Integer> getDisabledProducers()
      Returns a list of producer identifiers which should be disabled automatically when the SDK starts up
      Returns:
      a list of producer identifiers which should be disabled automatically when the sdk starts up
    • getSchedulerTasksToSkip

      public Set<String> getSchedulerTasksToSkip()
      Returns a set of task names that should be skipped
      Returns:
      a set of task names that should be skipped
    • getHttpClientMaxConnTotal

      public int getHttpClientMaxConnTotal()
      Returns connection pool size for http client
      Returns:
      connection pool size for http client
    • getHttpClientMaxConnPerRoute

      public int getHttpClientMaxConnPerRoute()
      Returns maximum number of concurrent connections per route for http client
      Returns:
      maximum number of concurrent connections per route for http client
    • getRecoveryHttpClientMaxConnTotal

      public int getRecoveryHttpClientMaxConnTotal()
      Returns connection pool size for recovery http client
      Returns:
      connection pool size for recovery http client
    • getRecoveryHttpClientMaxConnPerRoute

      public int getRecoveryHttpClientMaxConnPerRoute()
      Returns maximum number of concurrent connections per route for recovery http client
      Returns:
      maximum number of concurrent connections per route for recovery http client
    • updateApiHost

      public void updateApiHost(String newApiHost)
      Updates the API host - this method can be used only while in replay mode, no other SDK modes support this
      Parameters:
      newApiHost - the new API host
    • getFastHttpClientTimeout

      public long getFastHttpClientTimeout()
      Indicates the timeout which should be used on fast-failing HTTP requests(seconds)
      Returns:
      the timeout which should be used on fast-failing HTTP requests(seconds)
    • toString

      public String toString()
      Overrides:
      toString in class Object