Interface KieContainerListener
-
public interface KieContainerListenerThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFailure(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 Detail
-
onSuccess
void onSuccess(org.kie.api.runtime.KieContainer kieContainer, KIEModuleCacheBuilder cache)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
void onFailure(RuleEngineActionResult result)
The method to be called when the switching to a new KieContainer fails- Parameters:
result- the switching result accumulating instance ofRuleEngineActionResult
-
-