public interface SportEventCache
| Modifier and Type | Method and Description |
|---|---|
void |
addFixtureTimestamp(Urn id)
Adds fixture timestamp to cache so that the next fixture calls for the event goes through non-cached fixture provider
|
Integer |
deleteSportEventsFromCache(Date before)
Deletes the sport events from cache which are scheduled before specified date
|
SportEventCi |
getEventCacheItem(Urn id)
Returns a
SportEventCi instance representing a cached sport event data |
SportEventCi |
getEventCacheItem(Urn id,
RequestOptions requestOptions)
Returns a
SportEventCi instance representing a cached sport event data |
List<Urn> |
getEventIds(Date date,
Locale locale)
|
List<Urn> |
getEventIds(Urn tournamentId,
Locale locale)
Returns a
List containing id's of sport events, which belong to a specific tournament |
void |
onEventBooked(Urn id)
Method that gets triggered when the associated event gets booked through the
BookingManager |
void |
purgeCacheItem(Urn id)
Purges an item from the
SportEventCache |
SportEventCi getEventCacheItem(Urn id) throws CacheItemNotFoundException
SportEventCi instance representing a cached sport event dataid - an Urn specifying the id of the sport eventSportEventCi instance representing cached sport event dataCacheItemNotFoundExceptionSportEventCi getEventCacheItem(Urn id, RequestOptions requestOptions) throws CacheItemNotFoundException
SportEventCi instance representing a cached sport event dataid - an Urn specifying the id of the sport eventrequestOptions - a RequestOptions object with the configuration of request issued to DataRouterManagerSportEventCi instance representing cached sport event dataCacheItemNotFoundExceptionList<Urn> getEventIds(Urn tournamentId, Locale locale) throws IllegalCacheStateException
List containing id's of sport events, which belong to a specific tournamenttournamentId - an Urn specifying the id of the tournament to which the events should relatelocale - the locale to fetch the dataList containing id's of sport events, which belong to the specified tournamentIllegalCacheStateExceptionList<Urn> getEventIds(Date date, Locale locale) throws IllegalCacheStateException
List containing id's of sport events, which are scheduled for a specific date - if provided;
otherwise a List of currently live events is returneddate - an optional Date for which the data is providedlocale - the locale to fetch the dataList of events that are happening on the specified Date;
or a List of currently live eventsIllegalCacheStateExceptionvoid purgeCacheItem(Urn id)
SportEventCacheid - The Urn specifying the event which should be purgedvoid onEventBooked(Urn id)
BookingManagerid - the Urn of the event that was successfully bookedvoid addFixtureTimestamp(Urn id)
id - the Urn of the eventCopyright © 2016–2025. All rights reserved.