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 Type
    Method
    Description
    void
    The method to be called when the switching to a new KieContainer fails
    void
    onSuccess(org.kie.api.runtime.KieContainer kieContainer, KIEModuleCacheBuilder cache)
    The method to be called if the switching operation finished successfully
  • Method Details

    • 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 of KieContainer
      cache - the switching result accumulating instance of RuleEngineActionResult
    • 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 of RuleEngineActionResult