Class ThingRemovedEvent

All Implemented Interfaces:
Event

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

    • TYPE

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

    • ThingRemovedEvent

      protected ThingRemovedEvent(String topic, String payload, ThingDTO thing)
      Constructs a new thing removed 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