public interface ProfileCache
Modifier and Type | Method and Description |
---|---|
CompetitorCi |
getCompetitorProfile(Urn id,
List<Locale> locales)
Returns a
CompetitorCi associated with the provided Urn |
PlayerProfileCi |
getPlayerProfile(Urn id,
List<Locale> locales,
List<Urn> possibleAssociatedCompetitorIds)
Returns a
PlayerProfileCi associated with the provided Urn |
void |
purgeCompetitorProfileCacheItem(Urn competitorId)
Purges the associated competitor cache item
|
void |
purgePlayerProfileCacheItem(Urn playerId)
Purges the associated player profile cache item
|
PlayerProfileCi getPlayerProfile(Urn id, List<Locale> locales, List<Urn> possibleAssociatedCompetitorIds) throws IllegalCacheStateException, CacheItemNotFoundException
PlayerProfileCi
associated with the provided Urn
id
- - the unique Urn
identifier of the playerlocales
- - a List
of locales in which the data is requiredpossibleAssociatedCompetitorIds
- - a list of possible associated competitors, used to prefetch competitor profilesPlayerProfileCi
associated with the provided Urn
IllegalCacheStateException
CacheItemNotFoundException
CompetitorCi getCompetitorProfile(Urn id, List<Locale> locales) throws IllegalCacheStateException, CacheItemNotFoundException
CompetitorCi
associated with the provided Urn
id
- - the unique Urn
identifier of the competitorlocales
- - a List
of locales in which the data is requiredCompetitorCi
associated with the provided Urn
IllegalCacheStateException
CacheItemNotFoundException
void purgeCompetitorProfileCacheItem(Urn competitorId)
competitorId
- the identifier of the cache item to purgevoid purgePlayerProfileCacheItem(Urn playerId)
playerId
- the identifier of the cache item to purgeCopyright © 2016–2025. All rights reserved.