Class AbstractItemEventSubscriber

    • Constructor Detail

      • AbstractItemEventSubscriber

        public AbstractItemEventSubscriber()
    • Method Detail

      • getEventFilter

        public EventFilter getEventFilter()
        Description copied from interface: EventSubscriber
        Gets an EventFilter in order to receive specific events if the filter applies. If there is no filter all subscribed event types are received.
        Specified by:
        getEventFilter in interface EventSubscriber
        Returns:
        the event filter, or null
      • receive

        public void receive​(Event event)
        Description copied from interface: EventSubscriber
        Callback method for receiving Events from the openHAB event bus. This method is called for every event where the event subscriber is subscribed to and the event filter applies.
        Specified by:
        receive in interface EventSubscriber
        Parameters:
        event - the received event (not null)
      • receiveCommand

        protected void receiveCommand​(ItemCommandEvent commandEvent)
        Callback method for receiving item command events from the openHAB event bus.
        Parameters:
        commandEvent - the item command event
      • receiveUpdate

        protected void receiveUpdate​(ItemStateEvent updateEvent)
        Callback method for receiving item update events from the openHAB event bus.
        Parameters:
        updateEvent - the item update event