Interface ProfileCache
- All Known Implementing Classes:
ProfileCacheImpl
public interface ProfileCache
Defines methods implemented by caches used to store information about player and competitor profiles
-
Method Summary
Modifier and TypeMethodDescriptiongetCompetitorProfile(Urn id, List<Locale> locales) Returns aCompetitorCiassociated with the providedUrnReturns aPlayerProfileCiassociated with the providedUrnvoidpurgeCompetitorProfileCacheItem(Urn competitorId) Purges the associated competitor cache itemvoidpurgePlayerProfileCacheItem(Urn playerId) Purges the associated player profile cache item
-
Method Details
-
getPlayerProfile
PlayerProfileCi getPlayerProfile(Urn id, List<Locale> locales, List<Urn> possibleAssociatedCompetitorIds) throws IllegalCacheStateException, CacheItemNotFoundException Returns aPlayerProfileCiassociated with the providedUrn- Parameters:
id- - the uniqueUrnidentifier of the playerlocales- - aListof locales in which the data is requiredpossibleAssociatedCompetitorIds- - a list of possible associated competitors, used to prefetch competitor profiles- Returns:
- - a
PlayerProfileCiassociated with the providedUrn - Throws:
IllegalCacheStateExceptionCacheItemNotFoundException
-
getCompetitorProfile
CompetitorCi getCompetitorProfile(Urn id, List<Locale> locales) throws IllegalCacheStateException, CacheItemNotFoundException Returns aCompetitorCiassociated with the providedUrn- Parameters:
id- - the uniqueUrnidentifier of the competitorlocales- - aListof locales in which the data is required- Returns:
- - a
CompetitorCiassociated with the providedUrn - Throws:
IllegalCacheStateExceptionCacheItemNotFoundException
-
purgeCompetitorProfileCacheItem
Purges the associated competitor cache item- Parameters:
competitorId- the identifier of the cache item to purge
-
purgePlayerProfileCacheItem
Purges the associated player profile cache item- Parameters:
playerId- the identifier of the cache item to purge
-