Interface Event

All Known Implementing Classes:
AbstractEvent, AbstractInboxEvent, AbstractItemChannelLinkRegistryEvent, AbstractItemRegistryEvent, AbstractRuleRegistryEvent, AbstractThingRegistryEvent, AddonEvent, ChannelDescriptionChangedEvent, ChannelTriggeredEvent, ConfigStatusInfoEvent, ExecutionEvent, FirmwareStatusInfoEvent, FirmwareUpdateProgressInfoEvent, FirmwareUpdateResultInfoEvent, GroupItemStateChangedEvent, GroupStateUpdatedEvent, InboxAddedEvent, InboxRemovedEvent, InboxUpdatedEvent, ItemAddedEvent, ItemChannelLinkAddedEvent, ItemChannelLinkRemovedEvent, ItemCommandEvent, ItemEvent, ItemRemovedEvent, ItemStateChangedEvent, ItemStateEvent, ItemStatePredictedEvent, ItemStateUpdatedEvent, ItemTimeSeriesEvent, ItemTimeSeriesUpdatedEvent, ItemUpdatedEvent, RuleAddedEvent, RuleRemovedEvent, RuleStatusInfoEvent, RuleUpdatedEvent, StartlevelEvent, ThingAddedEvent, ThingRemovedEvent, ThingStatusInfoChangedEvent, ThingStatusInfoEvent, ThingUpdatedEvent, TimerEvent

@NonNullByDefault public interface Event
Event objects are delivered by the EventPublisher through the openHAB event bus. The callback interface EventSubscriber can be implemented in order to receive such events.
Author:
Stefan Bußweiler - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the payload as a serialized string.
    @Nullable String
    Gets the name of the source identifying the sender.
    Gets the topic of an event.
    Gets the event type.
  • Method Details

    • getType

      String getType()
      Gets the event type.
      Returns:
      the event type
    • getTopic

      String getTopic()
      Gets the topic of an event.
      Returns:
      the event topic
    • getPayload

      String getPayload()
      Gets the payload as a serialized string.
      Returns:
      the serialized event
    • getSource

      @Nullable String getSource()
      Gets the name of the source identifying the sender.
      Returns:
      the name of the source