Class ThingAddedEvent

All Implemented Interfaces:
Event

@NonNullByDefault public class ThingAddedEvent extends AbstractThingRegistryEvent
A ThingAddedEvent notifies subscribers that a thing has been added. Thing added events must be created with the ThingEventFactory.
Author:
Stefan Bußweiler - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
      The thing added event type.
  • Constructor Details

    • ThingAddedEvent

      protected ThingAddedEvent(String topic, String payload, ThingDTO thing)
      Constructs a new thing added event object.
      Parameters:
      topic - the topic
      payload - the payload
      thing - the thing data transfer object
  • 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