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

    • TYPE

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

    • ThingUpdatedEvent

      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

    • getType

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

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

      public String toString()
      Overrides:
      toString in class Object