Interface EvaluationListeners

All Known Subinterfaces:
Knowledge, org.evrete.api.Listeners, RuleSession<S>, RuleSetContext<C,R>, RuntimeContext<C>, StatefulSession, StatelessSession
All Known Implementing Classes:
AbstractSessionWrapper, KnowledgeWrapper

public interface EvaluationListeners
Interface for managing EvaluationListener instances. Allows adding and removing listeners to handle evaluation events.
  • Method Details

    • addListener

      void addListener(EvaluationListener listener)
      Adds a listener to be notified of evaluation events. If the listener is already added, behavior depends on the implementation.
      Parameters:
      listener - the listener to add, not null.
    • removeListener

      void removeListener(EvaluationListener listener)
      Removes a previously added listener. If the listener is not registered, this method has no effect.
      Parameters:
      listener - the listener to remove, not null.