use of org.drools.core.common.ConcurrentNodeMemories in project drools by kiegroup.
the class StatefulKnowledgeSessionImpl method bindRuleBase.
protected void bindRuleBase(InternalKnowledgeBase kBase, InternalAgenda agenda, boolean initInitFactHandle) {
this.kBase = kBase;
this.nodeMemories = new ConcurrentNodeMemories(kBase, DEFAULT_RULE_UNIT);
this.pctxFactory = kBase.getConfiguration().getComponentFactory().getPropagationContextFactory();
if (agenda == null) {
this.agenda = kBase.getConfiguration().getComponentFactory().getAgendaFactory().createAgenda(kBase);
} else {
this.agenda = agenda;
}
this.agenda.setWorkingMemory(this);
RuleBaseConfiguration conf = kBase.getConfiguration();
this.sequential = conf.isSequential();
initDefaultEntryPoint();
updateEntryPointsCache();
if (initInitFactHandle) {
this.initialFactHandle = initInitialFact(kBase, null);
}
}
Aggregations