Package org.openhab.core.events
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
-
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
-