Class MarketDescriptionProviderImpl
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.caching.markets.MarketDescriptionProviderImpl
- All Implemented Interfaces:
MarketDescriptionProvider
Created on 15/06/2017.
// TODO @eti: Javadoc
-
Constructor Summary
ConstructorsConstructorDescriptionMarketDescriptionProviderImpl(InvariantMarketDescriptionCache invariantMarketCache, MarketDescriptionCache variantMarketCache, VariantDescriptionCache variantDescriptionCache) -
Method Summary
Modifier and TypeMethodDescriptiongetMarketDescription(int marketId, Map<String, String> marketSpecifiers, List<Locale> locales, boolean fetchVariantDescriptions) booleanreloadMarketDescription(int marketId, Map<String, String> marketSpecifiers) Reloads market description (one or list)
-
Constructor Details
-
MarketDescriptionProviderImpl
@Inject public MarketDescriptionProviderImpl(InvariantMarketDescriptionCache invariantMarketCache, MarketDescriptionCache variantMarketCache, VariantDescriptionCache variantDescriptionCache)
-
-
Method Details
-
getMarketDescription
public MarketDescription getMarketDescription(int marketId, Map<String, String> marketSpecifiers, List<Locale> locales, boolean fetchVariantDescriptions) throws CacheItemNotFoundException- Specified by:
getMarketDescriptionin interfaceMarketDescriptionProvider- Throws:
CacheItemNotFoundException
-
reloadMarketDescription
Reloads market description (one or list)- Specified by:
reloadMarketDescriptionin interfaceMarketDescriptionProvider- Parameters:
marketId- the market identifiermarketSpecifiers- a list of specifiers or a null reference if market is invariant- Returns:
- true if succeeded, false otherwise
-