Interface TriggerHandlerCallback
- All Superinterfaces:
ModuleHandlerCallback
- All Known Subinterfaces:
SimpleTriggerHandlerCallback
This is a callback interface to RuleManager which is used by the
TriggerHandler to notify the RuleManager
about firing of the Trigger. These calls from Triggers must be stored in a queue
and applied to the RuleAngine in order of their appearance. Each Rule has to create its own instance of
TriggerHandlerCallback.- Author:
- Yordan Mihaylov - Initial contribution, Kai Kreuzer - made it a sub-interface of ModuleHandlerCallback, Fabian Wolter - Add method for retrieving the handler's scheduler
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidThis method is used by theTriggerHandlerto notify the RuleManager when the linkedTriggerinstance was fired.voidThis method is used by theTriggerHandlerto notify the RuleManager when the linkedTriggerinstance was fired.Methods inherited from interface org.openhab.core.automation.ModuleHandlerCallback
getStatus, getStatusInfo, isEnabled, runNow, runNow, setEnabled
-
Method Details
-
triggered
This method is used by theTriggerHandlerto notify the RuleManager when the linkedTriggerinstance was fired.- Parameters:
trigger- instance of trigger which was fired. When one TriggerHandler serve more then oneTriggerinstances, this parameter defines which trigger was fired.
-
triggered
This method is used by theTriggerHandlerto notify the RuleManager when the linkedTriggerinstance was fired. -
getScheduler
ScheduledExecutorService getScheduler()- Returns:
- the scheduler of this rule
-