Class TimerEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.automation.events.TimerEvent
All Implemented Interfaces:
Event

@NonNullByDefault public class TimerEvent extends AbstractEvent
An TimerEvent is only used to notify rules when timer triggers fire.
Author:
Jan N. Klug - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
  • Constructor Details

    • TimerEvent

      public TimerEvent(String topic, String payload, @Nullable String source)
      Constructs a new timer event
      Parameters:
      topic - the topic of the event
      payload - the payload of the event (contains trigger configuration)
      source - the source of the event
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • toString

      public String toString()
      Overrides:
      toString in class Object