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 Trigger
s 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 void
This method is used by theTriggerHandler
to notify the RuleManager when the linkedTrigger
instance was fired.void
This method is used by theTriggerHandler
to notify the RuleManager when the linkedTrigger
instance 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 theTriggerHandler
to notify the RuleManager when the linkedTrigger
instance was fired.- Parameters:
trigger
- instance of trigger which was fired. When one TriggerHandler serve more then oneTrigger
instances, this parameter defines which trigger was fired.
-
triggered
This method is used by theTriggerHandler
to notify the RuleManager when the linkedTrigger
instance was fired. -
getScheduler
ScheduledExecutorService getScheduler()- Returns:
- the scheduler of this rule
-