Interface SportsDataCache
- All Known Implementing Classes:
SportsDataCacheImpl
public interface SportsDataCache
Defines methods used to access sports data cache items
-
Method Summary
Modifier and TypeMethodDescriptiongetCategory(Urn categoryId, List<Locale> locales) Returns the associated category cache itemReturns aListsports supported by the feed.
-
Method Details
-
getSports
Returns aListsports supported by the feed.- Parameters:
locales- aListofLocalespecifying the languages in which the data is returned- Returns:
- a
Listsports supported by the feed - Throws:
IllegalCacheStateException
-
getSport
SportData getSport(Urn sportId, List<Locale> locales) throws IllegalCacheStateException, CacheItemNotFoundException - Parameters:
sportId- aUrnspecifying the id of the sportlocales- aListofLocalespecifying the languages in which the data is returned- Returns:
- a
SportDatacontaining information about the requested sport - Throws:
IllegalCacheStateExceptionCacheItemNotFoundException
-
getCategory
CategoryCi getCategory(Urn categoryId, List<Locale> locales) throws IllegalCacheStateException, CacheItemNotFoundException Returns the associated category cache item- Parameters:
categoryId- the identifier of the categorylocales- the locales in which to provide the data- Returns:
- the CI of the category associated with the provided identifier
- Throws:
IllegalCacheStateException- if the cache load failedCacheItemNotFoundException- if the cache item could not be found - category does not exists in the cache/api
-