public class InvariantMarketDescriptionCache extends Object implements MarketDescriptionCache
| Constructor and Description |
|---|
InvariantMarketDescriptionCache(com.google.common.cache.Cache<String,MarketDescriptionCi> cache,
DataProvider<com.sportradar.uf.sportsapi.datamodel.MarketDescriptions> dataProvider,
ObservableDataProvider<com.sportradar.uf.sportsapi.datamodel.MarketDescriptions> additionalMappingsProvider,
MappingValidatorFactory mappingValidatorFactory,
SdkTaskScheduler scheduler,
List<Locale> prefetchLocales,
TelemetryFactory telemetryFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteCacheItem(int marketId,
String variant) |
List<MarketDescription> |
getAllInvariantMarketDescriptions(List<Locale> locales) |
MarketDescription |
getMarketDescriptor(int marketId,
String variant,
Languages.BestEffort locales) |
boolean |
loadMarketDescriptions() |
void |
updateCacheItem(int marketId,
String variant) |
public InvariantMarketDescriptionCache(com.google.common.cache.Cache<String,MarketDescriptionCi> cache, DataProvider<com.sportradar.uf.sportsapi.datamodel.MarketDescriptions> dataProvider, ObservableDataProvider<com.sportradar.uf.sportsapi.datamodel.MarketDescriptions> additionalMappingsProvider, MappingValidatorFactory mappingValidatorFactory, SdkTaskScheduler scheduler, List<Locale> prefetchLocales, TelemetryFactory telemetryFactory)
public MarketDescription getMarketDescriptor(int marketId, String variant, Languages.BestEffort locales) throws IllegalCacheStateException, CacheItemNotFoundException
getMarketDescriptor in interface MarketDescriptionCacheIllegalCacheStateExceptionCacheItemNotFoundExceptionpublic boolean loadMarketDescriptions()
loadMarketDescriptions in interface MarketDescriptionCachepublic void deleteCacheItem(int marketId,
String variant)
deleteCacheItem in interface MarketDescriptionCachepublic void updateCacheItem(int marketId,
String variant)
updateCacheItem in interface MarketDescriptionCachepublic List<MarketDescription> getAllInvariantMarketDescriptions(List<Locale> locales) throws IllegalCacheStateException, CacheItemNotFoundException
Copyright © 2016–2025. All rights reserved.