Class InvariantMarketDescriptionCache
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.markets.InvariantMarketDescriptionCache
- All Implemented Interfaces:
MarketDescriptionCache
-
Constructor Summary
ConstructorsConstructorDescriptionInvariantMarketDescriptionCache(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) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCacheItem(int marketId, String variant) getAllInvariantMarketDescriptions(List<Locale> locales) getMarketDescriptor(int marketId, String variant, Languages.BestEffort locales) booleanvoidupdateCacheItem(int marketId, String variant)
-
Constructor Details
-
InvariantMarketDescriptionCache
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)
-
-
Method Details
-
getMarketDescriptor
public MarketDescription getMarketDescriptor(int marketId, String variant, Languages.BestEffort locales) throws IllegalCacheStateException, CacheItemNotFoundException - Specified by:
getMarketDescriptorin interfaceMarketDescriptionCache- Throws:
IllegalCacheStateExceptionCacheItemNotFoundException
-
loadMarketDescriptions
public boolean loadMarketDescriptions()- Specified by:
loadMarketDescriptionsin interfaceMarketDescriptionCache
-
deleteCacheItem
- Specified by:
deleteCacheItemin interfaceMarketDescriptionCache
-
updateCacheItem
- Specified by:
updateCacheItemin interfaceMarketDescriptionCache
-
getAllInvariantMarketDescriptions
public List<MarketDescription> getAllInvariantMarketDescriptions(List<Locale> locales) throws IllegalCacheStateException, CacheItemNotFoundException
-