Interface ModuleHandler

All Known Subinterfaces:
ActionHandler, ConditionHandler, TimeBasedConditionHandler, TimeBasedTriggerHandler, TriggerHandler
All Known Implementing Classes:
BaseActionModuleHandler, BaseConditionModuleHandler, BaseModuleHandler, BaseTriggerModuleHandler

@NonNullByDefault public interface ModuleHandler
A common interface for all module Handler interfaces. The Handler interfaces are bridge between RuleManager and external modules used by the RuleManager.
Author:
Yordan Mihaylov - Initial contribution
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The method is called by RuleManager to free resources when ModuleHandler is released.
    void
    The callback is injected to the handler through this method.
  • Method Details

    • dispose

      void dispose()
      The method is called by RuleManager to free resources when ModuleHandler is released.
    • setCallback

      void setCallback(ModuleHandlerCallback callback)
      The callback is injected to the handler through this method.
      Parameters:
      callback - a ModuleHandlerCallback instance