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 |
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 trough 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 dataCacheItemNotFoundException
List<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 tournamentIllegalCacheStateException
List<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 eventsIllegalCacheStateException
void purgeCacheItem(Urn id)
SportEventCache
id
- The Urn
specifying the event which should be purgedvoid onEventBooked(Urn id)
BookingManager
id
- the Urn
of the event that was successfully bookedvoid addFixtureTimestamp(Urn id)
id
- the Urn
of the eventCopyright © 2016–2025. All rights reserved.