Class ItemRemovedEvent

All Implemented Interfaces:
Event

@NonNullByDefault public class ItemRemovedEvent extends AbstractItemRegistryEvent
An ItemRemovedEvent notifies subscribers that an item has been removed. Item removed events must be created with the ItemEventFactory.
Author:
Stefan Bußweiler - Initial contribution
  • Field Details

    • TYPE

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

    • ItemRemovedEvent

      protected ItemRemovedEvent(String topic, String payload, ItemDTO item)
      Constructs a new item removed event object.
      Parameters:
      topic - the topic
      payload - the payload
      item - the item 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