public interface LiveOddsBasedFeed extends UserRequestManager, LiveFeed
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes a communication channel with the live-odds server.
|
long |
getEventList(org.joda.time.DateTime from,
org.joda.time.DateTime to,
boolean includeAvailable)
Retrieves a match list
This method can block to prevent going over the server limits.
|
long |
getEventMessages(EventIdentifier eventId,
long from,
long to,
boolean pack)
Retrieves specified messages for the match specified by the
eventId
Return value represents the informative request number. |
long |
getEventMeta(EventIdentifier[] eventIds)
Retrieves meta information for given events.
|
long |
getEventsStatus(Collection<EventIdentifier> eventIds,
org.joda.time.DateTime time,
boolean pack)
Retrieves the status of the events specified by the
eventIds from live-odds server
This method can block to prevent going over the server limits. |
long |
getEventStatus(EventIdentifier eventId,
org.joda.time.DateTime time,
boolean pack)
Retrieves the status of the match specified by the
eventId from live-odds server. |
com.sportradar.sdk.di.annotations.FeedType |
getFeedType()
Get the type of this feed.
|
bookMatches, getSubscribedEvents, getTestManager, subscribe, unsubscribe
getConnectionParams
void close()
IllegalStateException
- if the feed is already closed.long getEventList(org.joda.time.DateTime from, org.joda.time.DateTime to, boolean includeAvailable)
from
- - from timestampto
- - to timestampincludeAvailable
- - when true include also those that you have not booked (but are available)IllegalStateException
- if the feed is not openedIllegalArgumentException
- if from
or to
is a null reference.long getEventMessages(EventIdentifier eventId, long from, long to, boolean pack)
eventId
Return value represents the informative request number.
This method can block to prevent going over the server limits. Use this call in non SDK dispatcher thread!eventId
- Specifies the event for which the messages will be retrieved.from
- Specifies the minimum sequence number of retrieved messages.to
- Specifies the maximum sequence number of retrieved messages.pack
- Specifies whether all messages should be packed in the EventDataPackage
instance.IllegalStateException
- if the feed is not openedIllegalArgumentException
- if the eventId
is a null reference.long getEventMeta(EventIdentifier[] eventIds)
eventIds
- - event idsIllegalStateException
- if the feed is not openedIllegalArgumentException
- if eventIds
is a null reference.long getEventStatus(EventIdentifier eventId, org.joda.time.DateTime time, boolean pack)
eventId
from live-odds server.
Return value represents the informative request number.
This method can block to prevent going over the server limits. Use this call in non SDK dispatcher thread!eventId
- Specified the event for which the current status will be retrieved.time
- Specifies the time for which to retrieve the status.pack
- Specifies whether all messages should pa packaged in the EventDataPackage
instance.IllegalStateException
- if the feed is not openedIllegalArgumentException
- if the eventId
is a null reference.long getEventsStatus(Collection<EventIdentifier> eventIds, org.joda.time.DateTime time, boolean pack)
eventIds
from live-odds server
This method can block to prevent going over the server limits. Use this call in non SDK dispatcher thread!eventIds
- Specified the matches for which the current status will be retrieved.time
- Specifies the time for which to retrieve the status.pack
- Specifies whether all messages should pa packaged in the EventDataPackage
instance.com.sportradar.sdk.di.annotations.FeedType getFeedType()
Copyright © 2013–2023. All rights reserved.