public class UofSdk extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected com.google.inject.Injector |
injector
The injector used by this feed instance
|
protected SdkInternalConfiguration |
oddsFeedConfiguration
The UofSdk main configuration file
|
protected UofConfiguration |
uofConfiguration |
| Modifier | Constructor and Description |
|---|---|
protected |
UofSdk(UofConfiguration config,
com.google.inject.Injector injector)
The following constructor should be used only for testing purposes
|
|
UofSdk(UofGlobalEventsListener listener,
UofConfiguration config)
The most basic feed constructor
|
protected |
UofSdk(UofGlobalEventsListener listener,
UofConfiguration config,
boolean useReplay,
CustomisableSdkModule customisableSdkModule,
UofExtListener uofExtListener)
The following constructor is used to crate the UofSdk instance with a custom injection module
|
protected |
UofSdk(UofGlobalEventsListener listener,
UofConfiguration config,
UofExtListener uofExtListener)
The following constructor is used to create the UofSdk instance directly with the internal configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method used to close the feed and all its sessions
|
protected com.google.inject.Injector |
createSdkInjector(UofGlobalEventsListener listener,
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 |
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 through our API |
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.
|
UofSessionBuilder |
getSessionBuilder()
Builder used to create the required sessions
|
SportDataProvider |
getSportDataProvider()
Returns the
SportDataProvider helper that contains useful methods for specific event data retrieval |
static TokenSetter |
getUofConfigurationBuilder()
Returns a builder used to make
UofConfiguration instances |
static TokenSetter |
getUofConfigurationBuilder(String propertiesUri,
String yamlUri) |
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 UofSdk operation
|
protected com.google.inject.Injector injector
protected final SdkInternalConfiguration oddsFeedConfiguration
protected final UofConfiguration uofConfiguration
public UofSdk(UofGlobalEventsListener listener, UofConfiguration config)
listener - UofGlobalEventsListener that handles global feed eventsconfig - UofConfigurationImpl, the configuration class used to configure the new feed,
the configuration can be obtained using getUofConfigurationBuilder()protected UofSdk(UofGlobalEventsListener listener, UofConfiguration config, UofExtListener uofExtListener)
listener - UofGlobalEventsListener that handles global feed eventsconfig - SdkInternalConfiguration, the configuration class used to configure the new feeduofExtListener - UofExtListener used to receive raw feed and api dataprotected UofSdk(UofGlobalEventsListener listener, UofConfiguration config, boolean useReplay, CustomisableSdkModule customisableSdkModule, UofExtListener uofExtListener)
listener - UofGlobalEventsListener that handles global feed eventsconfig - UofConfigurationImpl, the configuration class used to configure the new feedcustomisableSdkModule - the customised injection moduleuofExtListener - UofExtListener used to receive raw feed and api dataprotected UofSdk(UofConfiguration config, com.google.inject.Injector injector)
injector - a predefined injectorconfig - SdkInternalConfiguration, the configuration class used to configure the new feedpublic static TokenSetter getUofConfigurationBuilder()
UofConfiguration instancesUofConfiguration instancespublic static TokenSetter getUofConfigurationBuilder(String propertiesUri, String yamlUri)
public UofSessionBuilder getSessionBuilder()
public MarketDescriptionManager getMarketDescriptionManager()
MarketDescriptionManager used to access markets data through our APIMarketDescriptionManager used to access markets datapublic SportDataProvider getSportDataProvider()
SportDataProvider helper that contains useful methods for specific event data retrievalSportDataProvider 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 UofSdk instancepublic CustomBetManager getCustomBetManager()
CustomBetManager instance which can be used to perform custom bet operationsCustomBetManager associated with the current UofSdk instancepublic BookmakerDetails getBookmakerDetails()
BookmakerDetails instance with bookmaker and token infoBookmakerDetails associated with the current UofSdk 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
close in interface AutoCloseableIOException - if the AMQP connection closure failsprotected void initOddsFeedInstance()
protected com.google.inject.Injector createSdkInjector(UofGlobalEventsListener listener, CustomisableSdkModule customisableSdkModule)
protected ReplayManager getReplayManager()
Copyright © 2016–2025. All rights reserved.