public class SportEventStatusCacheImpl extends Object implements SportEventStatusCache, DataRouterListener
| Constructor and Description |
|---|
SportEventStatusCacheImpl(com.google.common.cache.Cache<String,SportEventStatusCi> sportEventStatusCache,
SportEventCache sportEventCache,
com.google.common.cache.Cache<String,Date> ignoreEventsTimelineCache)
Initializes a new
SportEventStatusCacheImpl instance |
| Modifier and Type | Method and 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
|
SportEventStatusCi |
getSportEventStatusCi(Urn eventId,
boolean makeApiCall)
Returns the status of the event associated with the provided identifier.
|
void |
onSportEventStatusFetched(Urn id,
SportEventStatusDto data,
String statusOnEvent,
String source)
Adds a new
sportEventStatusCache entry |
void |
purgeSportEventStatus(Urn id)
Purges the sport event status associated with the provided event id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonAvailableSelectionsFetched, onCalculateProbabilityFetched, onCalculateProbabilityFilterFetched, onChildSportEventFetched, onCompetitorFetched, onDrawFetched, onDrawFixtureFetched, onDrawSummaryEndpointFetched, onFixtureFetched, onLotteryFetched, onMatchSummaryEndpointFetched, onMatchTimelineFetched, onPlayerFetched, onSimpleTeamFetched, onSportCategoriesFetched, onSportEventFetched, onSportFetched, onSportTournamentsFetched, onStageSummaryEndpointFetched, onTeamFetched, onTournamentExtendedFetched, onTournamentFetched, onTournamentInfoEndpointFetchedpublic SportEventStatusCacheImpl(com.google.common.cache.Cache<String,SportEventStatusCi> sportEventStatusCache, SportEventCache sportEventCache, com.google.common.cache.Cache<String,Date> ignoreEventsTimelineCache)
SportEventStatusCacheImpl instancesportEventStatusCache - - the Cache instance used to store sport event statusessportEventCache - - the SportEventCache instance used to fetch sport event
statuses if they are not yet cachedignoreEventsTimelineCache - - the Cache instance used to store event ids for which timeline SES should be ignoredpublic SportEventStatusCi getSportEventStatusCi(Urn eventId, boolean makeApiCall)
SportEventStatusCi instance indicating a 'not started' event is returned.getSportEventStatusCi in interface SportEventStatusCacheeventId - the event identifiermakeApiCall - should the API call be made if necessarySportEventStatusCi instance describing the last known event statuspublic void onSportEventStatusFetched(Urn id, SportEventStatusDto data, String statusOnEvent, String source)
sportEventStatusCache entryonSportEventStatusFetched in interface DataRouterListenerid - - the unique identifier of the sport event to which the status belongs todata - - a SportEventStatusDto to store in the cachestatusOnEvent - - a status obtained directly on the sport eventsource - - a source of the datapublic void purgeSportEventStatus(Urn id)
purgeSportEventStatus in interface SportEventStatusCacheid - the id of the event that you want to purge the sport event statuspublic void addEventIdForTimelineIgnore(Urn eventId, int producerId, String messageType)
addEventIdForTimelineIgnore in interface SportEventStatusCacheeventId - the event identifierproducerId - the producer identifiermessageType - type of the feed messageCopyright © 2016–2025. All rights reserved.