Class SdkInternalConfiguration
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.SdkInternalConfiguration
The internal SDK configuration
-
Constructor Summary
ConstructorsConstructorDescriptionSdkInternalConfiguration(UofConfiguration cfg, boolean setReplaySession, SdkConfigurationPropertiesReader sdkConfigurationPropertiesReader, SdkConfigurationYamlReader sdkConfigurationYamlReader) SdkInternalConfiguration(UofConfiguration cfg, SdkConfigurationPropertiesReader sdkConfigurationPropertiesReader, SdkConfigurationYamlReader sdkConfigurationYamlReader) -
Method Summary
Modifier and TypeMethodDescriptionintThe default locale used for any getter that returns localized Strings.Returns aListof locales in which the data should be prefetchedReturns a list of producer identifiers which should be disabled automatically when the SDK starts upReturns an indication on how should be the SDK exceptions handledlongIndicates the timeout which should be used on fast-failing HTTP requests(seconds)intReturns maximum number of concurrent connections per route for http clientintReturns connection pool size for http clientintIndicates the timeout which should be used on HTTP requests(seconds)intintReturns the password of the broker to which you are connecting - this field should be null/blank if connecting to the default Sportradar AMQP serversReturns 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 serversReturns the custom set messaging virtual hostintintgetPort()Gets the port used to connect to AMQP brokerintReturns maximum number of concurrent connections per route for recovery http clientintReturns connection pool size for recovery http clientintIndicates the timeout which should be used on HTTP requests for recovery endpoints(seconds)Returns a set of task names that should be skippedReturns the assigned SDK node identifierbooleanGets a value indicating whether SSL should be used when requesting API endpointsbooleanGets a value indicating whether SSL should be used when connecting to AMQP brokerbooleanIndicates if the received xml payloads should be cleaned from special characters such as new lines or notbooleanAn indication if the current configuration is setup for use in a replay sessiontoString()voidupdateApiHost(String newApiHost) Updates the API host - this method can be used only while in replay mode, no other SDK modes support this
-
Constructor Details
-
SdkInternalConfiguration
public SdkInternalConfiguration(UofConfiguration cfg, SdkConfigurationPropertiesReader sdkConfigurationPropertiesReader, SdkConfigurationYamlReader sdkConfigurationYamlReader) -
SdkInternalConfiguration
public SdkInternalConfiguration(UofConfiguration cfg, boolean setReplaySession, SdkConfigurationPropertiesReader sdkConfigurationPropertiesReader, SdkConfigurationYamlReader sdkConfigurationYamlReader)
-
-
Method Details
-
getMessagingHost
- Returns:
- Host / IP for connection as provided by Sportradar
-
getApiHost
- Returns:
- The Sportradar host used for API-access
-
getApiPort
public int getApiPort() -
getApiHostAndPort
-
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
- 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
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
Returns aListof locales in which the data should be prefetched- Returns:
- - a
Listof 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
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
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
Returns the custom set messaging virtual host- Returns:
- the custom messaging virtual host
-
getExceptionHandlingStrategy
Returns an indication on how should be the SDK exceptions handled- Returns:
- an indication on how should be the SDK exceptions handled
-
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:
trueif the message entries should be cleaned; otherwisefalse
-
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
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
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
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
-