Interface SportEventStatusCache
- All Known Implementing Classes:
SportEventStatusCacheImpl
public interface SportEventStatusCache
Defines methods implemented by classes used to cache
SportEventStatusDto instances-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventIdForTimelineIgnore(Urn eventId, int producerId, String messageType) Adds the event identifier for timeline ignore Used for BetPal events to have ignored timeline event status cachegetSportEventStatusCi(Urn eventId, boolean makeApiCall) Returns the status of the event associated with the provided identifier.voidPurges the sport event status associated with the provided event id
-
Method Details
-
getSportEventStatusCi
Returns the status of the event associated with the provided identifier. If the instance associated with the specified event is not found, aSportEventStatusCiinstance indicating a 'not started' event is returned.- Parameters:
eventId- the event identifiermakeApiCall- should the API call be made if necessary- Returns:
- a
SportEventStatusCiinstance describing the last known event status
-
purgeSportEventStatus
Purges the sport event status associated with the provided event id- Parameters:
id- the id of the event that you want to purge the sport event status
-
addEventIdForTimelineIgnore
Adds the event identifier for timeline ignore Used for BetPal events to have ignored timeline event status cache- Parameters:
eventId- the event identifierproducerId- the producer identifiermessageType- type of the feed message
-