Class ThingUpdatedEvent

All Implemented Interfaces:
Event

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

    • TYPE Link icon

      public static final String TYPE
      The thing updated event type.
  • Constructor Details Link icon

    • ThingUpdatedEvent Link icon

      protected ThingUpdatedEvent(String topic, String payload, ThingDTO thing, ThingDTO oldThing)
      Constructs a new thing updated event object.
      Parameters:
      topic - the topic
      payload - the payload
      thing - the thing data transfer object
      oldThing - the old thing data transfer object
  • Method Details Link icon

    • getType Link icon

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • getOldThing Link icon

      public ThingDTO getOldThing()
      Gets the old thing.
      Returns:
      the oldThing
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object