Interface ConfigurationModelCacheStrategy
-
- All Known Implementing Classes:
DefaultConfigurationModelCacheStrategyImpl
public interface ConfigurationModelCacheStrategyThis strategy manages the caching of the product configuration model itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ConfigModelgetConfigurationModelEngineState(java.lang.String configId)Retrieves the configuration model engine statevoidpurge()purges the cachesvoidremoveConfigAttributeState(java.lang.String configId)Removes the given configuration engine state and price summary model from read cache for engine statevoidremoveConfigAttributeStates()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - this method is obsolete because the key under which the configuration engine state and price summary states have been saved consists of configuration id an user session idvoidsetConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Puts the given config model into the engine state read cache
-
-
-
Method Detail
-
getConfigurationModelEngineState
ConfigModel getConfigurationModelEngineState(java.lang.String configId)
Retrieves the configuration model engine state- Parameters:
configId- id of the configuration- Returns:
- Configuration model
-
setConfigurationModelEngineState
void setConfigurationModelEngineState(java.lang.String configId, ConfigModel configModel)Puts the given config model into the engine state read cache- Parameters:
configId- unique config idconfigModel- model to cache
-
purge
void purge()
purges the caches
-
removeConfigAttributeStates
@Deprecated(since="1811", forRemoval=true) void removeConfigAttributeStates()Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - this method is obsolete because the key under which the configuration engine state and price summary states have been saved consists of configuration id an user session idClears the read cache for the configuration engine state and price summary states for the whole user session
-
removeConfigAttributeState
void removeConfigAttributeState(java.lang.String configId)
Removes the given configuration engine state and price summary model from read cache for engine state- Parameters:
configId- unique config id
-
-