public class OddsFeedConfiguration extends Object
Constructor and Description |
---|
OddsFeedConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addLocales(Collection<Locale> locales)
What locales that should be supported.
|
String |
getAccessToken() |
String |
getAPIHost() |
int |
getBookmakerId() |
String |
getDefaultLanguage() |
Locale |
getDefaultLocale()
The default locale used for any getter that returns localized Strings.
|
List<Locale> |
getDesiredLocales() |
long |
getLastReceivedTimestampBeforeDisconnect()
Get the last timestamp received before disconnect as set by @see
setLastReceivedTimestampBeforeDisconnect
|
int |
getLongestInactivityInterval() |
String |
getMessagingHost() |
int |
getPort()
Gets the port used to connect to AMQP broker
|
String |
getSportsAPIBaseURL() |
String |
getSportsAPIBaseURL(Locale l) |
boolean |
getUseSsl()
Gets a value indicating whether SSL should be used when connecting to AMQP broker
|
boolean |
isProductEnabled(Product product) |
boolean |
isReplaySession() |
void |
setAccessToken(String token)
Set your access token as provided by Sportradar (without this set you will not be able to
connect)
|
void |
setAPIHost(String host)
Specify the Sportradar host used for API access (if not specified this defaults to
api.betradar.com)
|
void |
setBookmakerId(int id)
Set your bookmaker id (without this set you will not be able to connect)
|
void |
setDefaultLocale(Locale locale)
Sets the default locale.
|
void |
setLastReceivedTimestampBeforeDisconnect(long timestamp)
This should be the last timestamp received and processed by the client before the previous
disconnect.
|
void |
setLongestInactivityInterval(int seconds)
Specify how many seconds that is maximum length of inactivity (default and lowest 20 seconds)
|
void |
setMessagingHost(String host)
Specify the Sportradar host to receive messages from (if not specified this defaults to
mq.betradar.com)
|
void |
setPort(int port)
Sets the port used to connect to AMQP broker
|
void |
setProductEnabled(Product product,
boolean enabled) |
void |
setReplaySession(boolean isReplaySession)
Set this to true to connect to the replay server instead of the ordinary odds server.
|
void |
setUseSsl(boolean useSsl)
Sets a value indicating whether SSL should be used when connecting to AMQP broker
|
public void addLocales(Collection<Locale> locales)
locales
- a set of locales that should be supported if possiblepublic String getMessagingHost()
public void setMessagingHost(String host)
host
- - the Sportradar host to receive messages frompublic void setAPIHost(String host)
host
- the Sportradar host used for API accesspublic String getAPIHost()
public void setLongestInactivityInterval(int seconds)
seconds
- the number of seconds of inactivity before flagging a product as downpublic int getLongestInactivityInterval()
public String getAccessToken()
public void setAccessToken(String token)
token
- the access tokenpublic int getBookmakerId()
public void setBookmakerId(int id)
id
- your bookmaker idpublic boolean getUseSsl()
public void setUseSsl(boolean useSsl)
useSsl
- value indicating whether SSL should be used when connecting to AMQP brokerpublic int getPort()
public void setPort(int port)
port
- the port used to connect to AMQP brokerpublic void setProductEnabled(Product product, boolean enabled)
public boolean isProductEnabled(Product product)
public void setLastReceivedTimestampBeforeDisconnect(long timestamp)
timestamp
- the last timestamp received in a message before disconnectpublic long getLastReceivedTimestampBeforeDisconnect()
public String getDefaultLanguage()
public Locale getDefaultLocale()
public void setDefaultLocale(Locale locale)
locale
- the locale to use as standard.public String getSportsAPIBaseURL()
public void setReplaySession(boolean isReplaySession)
isReplaySession
- - true to connect to the replay server - default falseReplayManager
public boolean isReplaySession()
Copyright © 2016–2017. All rights reserved.