Interface SportEventStatusCache

All Known Implementing Classes:
SportEventStatusCacheImpl

public interface SportEventStatusCache
Defines methods implemented by classes used to cache SportEventStatusDto instances
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addEventIdForTimelineIgnore(Urn eventId, int producerId, String messageType)
    Adds the event identifier for timeline ignore Used for BetPal events to have ignored timeline event status cache
    getSportEventStatusCi(Urn eventId, boolean makeApiCall)
    Returns the status of the event associated with the provided identifier.
    void
    Purges the sport event status associated with the provided event id
  • Method Details

    • getSportEventStatusCi

      SportEventStatusCi getSportEventStatusCi(Urn eventId, boolean makeApiCall)
      Returns the status of the event associated with the provided identifier. If the instance associated with the specified event is not found, a SportEventStatusCi instance indicating a 'not started' event is returned.
      Parameters:
      eventId - the event identifier
      makeApiCall - should the API call be made if necessary
      Returns:
      a SportEventStatusCi instance describing the last known event status
    • purgeSportEventStatus

      void purgeSportEventStatus(Urn id)
      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

      void addEventIdForTimelineIgnore(Urn eventId, int producerId, String messageType)
      Adds the event identifier for timeline ignore Used for BetPal events to have ignored timeline event status cache
      Parameters:
      eventId - the event identifier
      producerId - the producer identifier
      messageType - type of the feed message