public interface OddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder
are optionalModifier and Type | Method and Description |
---|---|
OddsFeedConfigurationBuilder |
addDesiredLocales(List<Locale> locales)
Which locales should be auto-fetched - beside the default
Locale . |
OddsFeedConfiguration |
build()
Builds an
OddsFeedConfiguration instance with the provided data |
OddsFeedConfigurationBuilder |
loadConfigFromSdkProperties()
Reads the SDK properties file and sets the available properties
|
OddsFeedConfigurationBuilder |
setApiHost(String apiHost)
Specify the host used for API access (if not specified this defaults to
api.betradar.com)
|
OddsFeedConfigurationBuilder |
setApiPort(int apiPort)
Specify the port used for API access (if not specified this defaults to 80)
|
OddsFeedConfigurationBuilder |
setApiUseSsl(boolean useSsl)
Sets a value indicating whether SSL should be used when requesting API endpoints
|
OddsFeedConfigurationBuilder |
setDefaultLocale(Locale defaultLocale)
Sets the default locale.
|
OddsFeedConfigurationBuilder |
setDisabledProducers(List<Integer> disabledProducers)
Set a list of producer identifiers which should be disabled automatically when the SDK starts
|
OddsFeedConfigurationBuilder |
setInactivitySeconds(int inactivitySeconds)
Specify how many seconds is the maximum length of inactivity (default and lowest 20 seconds, highest 180s)
|
OddsFeedConfigurationBuilder |
setMaxRecoveryExecutionMinutes(int executionMinutes)
Specify the maximum execution time of a recovery request.
|
OddsFeedConfigurationBuilder |
setMessagingHost(String host)
Specify the AMQP host to receive messages from (if not specified this defaults to
mq.betradar.com)
|
OddsFeedConfigurationBuilder |
setMessagingPassword(String password)
Set the password of the broker to which you are connecting - this is not required for the connection to the
default Sportradar AMQP servers
|
OddsFeedConfigurationBuilder |
setMessagingPort(int port)
Sets the port used to connect to AMQP broker
|
OddsFeedConfigurationBuilder |
setMessagingUseSsl(boolean useSsl)
Sets a value indicating whether SSL should be used when connecting to the AMQP broker
|
default OddsFeedConfigurationBuilder |
setMinIntervalBetweenRecoveryRequests(int intervalSeconds)
Sets the minimal time between two successive recovery requests initiated by alive messages (minimum 20 seconds)
|
OddsFeedConfigurationBuilder |
setSdkNodeId(int id)
Set the node identifier of the currently running SDK instance.
|
OddsFeedConfigurationBuilder |
setUseIntegrationEnvironment(boolean useIntegrationEnvironment)
Set the setting property which will ensure the SDK connects to the integration environment
(please note that the integration environment requires different access tokens than the production ones)
|
default OddsFeedConfigurationBuilder |
setUseStagingEnvironment(boolean useStagingEnvironment)
Deprecated.
in favour of {
setUseIntegrationEnvironment(boolean) } from v2.0.18 |
OddsFeedConfigurationBuilder setDefaultLocale(Locale defaultLocale)
defaultLocale
- the locale to use as default.OddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder addDesiredLocales(List<Locale> locales)
Locale
.locales
- a list of locales that should be auto-fetchedOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setMessagingUseSsl(boolean useSsl)
useSsl
- value indicating whether the SDK should use SSL when connecting to the AMQP brokerOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setApiUseSsl(boolean useSsl)
useSsl
- value indicating whether the SDK should use SSL when requesting API endpointsOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setMessagingHost(String host)
host
- - the AMQP host to receive messages fromOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setApiHost(String apiHost)
apiHost
- the host used for API accessOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setApiPort(int apiPort)
apiPort
- the port used for API accessOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setMessagingPort(int port)
port
- the port used to connect to AMQP brokerOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setInactivitySeconds(int inactivitySeconds)
inactivitySeconds
- the number of seconds of inactivity before flagging a producer as downOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setMaxRecoveryExecutionMinutes(int executionMinutes)
executionMinutes
- the number of minutes before the recovery request is repeatedOddsFeedConfigurationBuilder
default OddsFeedConfigurationBuilder setMinIntervalBetweenRecoveryRequests(int intervalSeconds)
intervalSeconds
- the minimal time between two successive recovery requests initiated by alive messages (default 30)RecoveryConfigurationBuilder
derived instance used to set general configuration propertiesOddsFeedConfigurationBuilder setMessagingPassword(String password)
password
- - the password used to connect to the AMQP broker(ex: your testing replay server)OddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setSdkNodeId(int id)
id
- the node identifierOddsFeedConfigurationBuilder
@Deprecated default OddsFeedConfigurationBuilder setUseStagingEnvironment(boolean useStagingEnvironment)
setUseIntegrationEnvironment(boolean)
} from v2.0.18useStagingEnvironment
- an indication if the integration environment should be usedOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setUseIntegrationEnvironment(boolean useIntegrationEnvironment)
useIntegrationEnvironment
- an indication if the integration environment should be usedOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder setDisabledProducers(List<Integer> disabledProducers)
disabledProducers
- a List
of producer identifiers which should be disabledOddsFeedConfigurationBuilder
OddsFeedConfigurationBuilder loadConfigFromSdkProperties()
OddsFeedConfigurationBuilder
OddsFeedConfiguration build()
OddsFeedConfiguration
instance with the provided dataOddsFeedConfiguration
instance built with the provided dataCopyright © 2016–2023. All rights reserved.