public class OddsFeed extends Object
Modifier and Type | Field and Description |
---|---|
protected com.google.inject.Injector |
injector
The injector used by this feed instance
|
protected SDKInternalConfiguration |
oddsFeedConfiguration
The OddsFeed main configuration file
|
Modifier | Constructor and Description |
---|---|
|
OddsFeed(@NonNull SDKGlobalEventsListener listener,
@NonNull OddsFeedConfiguration config)
The most basic feed constructor
|
protected |
OddsFeed(@NonNull SDKGlobalEventsListener listener,
@NonNull OddsFeedConfiguration config,
com.sportradar.unifiedodds.sdk.di.CustomisableSDKModule customisableSDKModule,
OddsFeedExtListener oddsFeedExtListener)
The following constructor is used to crate the OddsFeed instance with a custom injection module
|
protected |
OddsFeed(@NonNull SDKGlobalEventsListener listener,
SDKInternalConfiguration config,
com.sportradar.unifiedodds.sdk.di.CustomisableSDKModule customisableSDKModule,
OddsFeedExtListener oddsFeedExtListener)
The following constructor is used to crate the OddsFeed instance directly with the internal configuration and
the customisable module
|
protected |
OddsFeed(@NonNull SDKGlobalEventsListener listener,
SDKInternalConfiguration config,
OddsFeedExtListener oddsFeedExtListener)
The following constructor is used to create the OddsFeed instance directly with the internal configuration
|
protected |
OddsFeed(SDKInternalConfiguration config,
com.google.inject.Injector injector)
The following constructor should be used only for testing purposes
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Method used to close the feed and all its sessions
|
protected com.google.inject.Injector |
createSdkInjector(SDKGlobalEventsListener listener,
com.sportradar.unifiedodds.sdk.di.CustomisableSDKModule customisableSDKModule) |
List<Locale> |
getAvailableLanguages() |
BookingManager |
getBookingManager()
Returns the
BookingManager instance which can be used to perform booking calendar operations |
BookmakerDetails |
getBookmakerDetails()
Returns the
BookmakerDetails instance with bookmaker and token info |
CashOutProbabilitiesManager |
getCashOutProbabilitiesManager()
Returns the
CashOutProbabilitiesManager instance used to access probabilities data |
static ConfigurationAccessTokenSetter |
getConfigurationBuilder()
Deprecated.
in favour of the
getOddsFeedConfigurationBuilder() |
CustomBetManager |
getCustomBetManager()
Returns the
CustomBetManager instance which can be used to perform custom bet operations |
EventChangeManager |
getEventChangeManager()
Returns the
EventChangeManager instance used to automatically receive fixture and result changes |
EventRecoveryRequestIssuer |
getEventRecoveryRequestIssuer()
Returns the
EventRecoveryRequestIssuer instance which provides utility methods used to initialize
event message recoveries |
MarketDescriptionManager |
getMarketDescriptionManager()
Returns the
MarketDescriptionManager used to access markets data trough our API |
static TokenSetter |
getOddsFeedConfigurationBuilder()
Returns a builder used to make
OddsFeedConfiguration instances |
static TokenSetter |
getOddsFeedConfigurationBuilder(String propertiesUri,
String yamlUri) |
ProducerManager |
getProducerManager()
Returns the
ProducerManager instance used to manage available producers |
protected ReplayManager |
getReplayManager()
Returns the replay manager for the current feed that can be used to add SportEvents and test-scenarios to replay.
|
OddsFeedSessionBuilder |
getSessionBuilder()
Builder used to create the required sessions
|
SportsInfoManager |
getSportsInfoManager()
Returns the
SportsInfoManager helper that contains useful methods for specific event data retrieval |
protected void |
initOddsFeedInstance() |
boolean |
isOpen()
Returns true if feed is opened
|
void |
open()
This method opens/starts the feed with all the built sessions and
creates the various tasks needed for optimal OddsFeed operation
|
protected com.google.inject.Injector injector
protected final SDKInternalConfiguration oddsFeedConfiguration
public OddsFeed(@NonNull @NonNull SDKGlobalEventsListener listener, @NonNull @NonNull OddsFeedConfiguration config)
listener
- SDKGlobalEventsListener
that handles global feed eventsconfig
- OddsFeedConfiguration
, the configuration class used to configure the new feed,
the configuration can be obtained using getOddsFeedConfigurationBuilder()
protected OddsFeed(@NonNull @NonNull SDKGlobalEventsListener listener, SDKInternalConfiguration config, OddsFeedExtListener oddsFeedExtListener)
listener
- SDKGlobalEventsListener
that handles global feed eventsconfig
- SDKInternalConfiguration
, the configuration class used to configure the new feedoddsFeedExtListener
- OddsFeedExtListener
used to receive raw feed and api dataprotected OddsFeed(@NonNull @NonNull SDKGlobalEventsListener listener, @NonNull @NonNull OddsFeedConfiguration config, com.sportradar.unifiedodds.sdk.di.CustomisableSDKModule customisableSDKModule, OddsFeedExtListener oddsFeedExtListener)
listener
- SDKGlobalEventsListener
that handles global feed eventsconfig
- OddsFeedConfiguration
, the configuration class used to configure the new feedcustomisableSDKModule
- the customised injection moduleoddsFeedExtListener
- OddsFeedExtListener
used to receive raw feed and api dataprotected OddsFeed(@NonNull @NonNull SDKGlobalEventsListener listener, SDKInternalConfiguration config, com.sportradar.unifiedodds.sdk.di.CustomisableSDKModule customisableSDKModule, OddsFeedExtListener oddsFeedExtListener)
listener
- SDKGlobalEventsListener
that handles global feed eventsconfig
- SDKInternalConfiguration
, the configuration class used to configure the new feedcustomisableSDKModule
- the customised injection moduleoddsFeedExtListener
- OddsFeedExtListener
used to receive raw feed and api dataprotected OddsFeed(SDKInternalConfiguration config, com.google.inject.Injector injector)
injector
- a predefined injectorconfig
- SDKInternalConfiguration
, the configuration class used to configure the new feed@Deprecated public static ConfigurationAccessTokenSetter getConfigurationBuilder()
getOddsFeedConfigurationBuilder()
OddsFeedConfiguration
instancesOddsFeedConfiguration
instancespublic static TokenSetter getOddsFeedConfigurationBuilder()
OddsFeedConfiguration
instancesOddsFeedConfiguration
instancespublic static TokenSetter getOddsFeedConfigurationBuilder(String propertiesUri, String yamlUri)
public OddsFeedSessionBuilder getSessionBuilder()
public MarketDescriptionManager getMarketDescriptionManager()
MarketDescriptionManager
used to access markets data trough our APIMarketDescriptionManager
used to access markets datapublic SportsInfoManager getSportsInfoManager()
SportsInfoManager
helper that contains useful methods for specific event data retrievalSportsInfoManager
used to access various sports datapublic ProducerManager getProducerManager()
ProducerManager
instance used to manage available producersProducerManager
instance used to manage available producerspublic CashOutProbabilitiesManager getCashOutProbabilitiesManager()
CashOutProbabilitiesManager
instance used to access probabilities dataCashOutProbabilitiesManager
instance which can be used to access probabilities datapublic EventRecoveryRequestIssuer getEventRecoveryRequestIssuer()
EventRecoveryRequestIssuer
instance which provides utility methods used to initialize
event message recoveriesEventRecoveryRequestIssuer
instance associated with the current feed instancepublic BookingManager getBookingManager()
BookingManager
instance which can be used to perform booking calendar operationsBookingManager
associated with the current OddsFeed
instancepublic CustomBetManager getCustomBetManager()
CustomBetManager
instance which can be used to perform custom bet operationsCustomBetManager
associated with the current OddsFeed
instancepublic BookmakerDetails getBookmakerDetails()
BookmakerDetails
instance with bookmaker and token infoBookmakerDetails
associated with the current OddsFeed
instancepublic EventChangeManager getEventChangeManager()
EventChangeManager
instance used to automatically receive fixture and result changesEventChangeManager
instance used to automatically receive fixture and result changespublic void open() throws InitException
InitException
- if the feed fails to initializepublic boolean isOpen()
public void close() throws IOException
IOException
- if the AMQP connection closure failsprotected void initOddsFeedInstance()
protected com.google.inject.Injector createSdkInjector(SDKGlobalEventsListener listener, com.sportradar.unifiedodds.sdk.di.CustomisableSDKModule customisableSDKModule)
protected ReplayManager getReplayManager()
Copyright © 2016–2023. All rights reserved.