Interface KieContainerListener
public interface KieContainerListener
The interface for listener to fire every time the KieContainer switch happens. It should encapsulate any logic or
sequence of actions (including eventually the necessary blocking locks) to be performed when the new KieContainer is
already up and running.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(RuleEngineActionResult result) The method to be called when the switching to a new KieContainer failsvoidonSuccess(org.kie.api.runtime.KieContainer kieContainer, KIEModuleCacheBuilder cache) The method to be called if the switching operation finished successfully
-
Method Details
-
onSuccess
The method to be called if the switching operation finished successfully- Parameters:
kieContainer- the newly created instance ofKieContainercache- the switching result accumulating instance ofRuleEngineActionResult
-
onFailure
The method to be called when the switching to a new KieContainer fails- Parameters:
result- the switching result accumulating instance ofRuleEngineActionResult
-