Interface RuleEngineCacheService

All Known Implementing Classes:
DefaultCommerceRuleEngineCacheService, DefaultRuleEngineCacheService

public interface RuleEngineCacheService
The RuleEngineCacheService is designed to facilitate the caching of entities like globals or facts that are "static", i.e. that don't change during the life time of a rules module version. The cache service allows to create cache builders for rules module (see createKIEModuleCacheBuilder(DroolsKIEModuleModel). The KIEModuleCacheBuilder is then filled using its KIEModuleCacheBuilder.processRule(AbstractRuleEngineRuleModel) during rule module initialization. The addToCache(KIEModuleCacheBuilder) is used to add the cache to the cache service (and replace any previously existing cache for that module). During rule evaluation the provideCachedEntities(RuleEvaluationContext) is invoked to enhance the given rule evaluation context with the cached entities.