Class ItemTimeSeriesUpdatedEvent

All Implemented Interfaces:
Event

@NonNullByDefault public class ItemTimeSeriesUpdatedEvent extends ItemEvent
The ItemTimeSeriesUpdatedEvent can be used to report item time series updates through the openHAB event bus. Time series events must be created with the ItemEventFactory.
Author:
Jan N. Klug - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
    • timeSeries

      protected final TimeSeries timeSeries
  • Constructor Details

    • ItemTimeSeriesUpdatedEvent

      protected ItemTimeSeriesUpdatedEvent(String topic, String payload, String itemName, TimeSeries timeSeries, @Nullable String source)
      Constructs a new item time series updated event.
      Parameters:
      topic - the topic
      payload - the payload
      itemName - the item name
      timeSeries - the time series
      source - the source, can be null
  • Method Details

    • getType

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

      public TimeSeries getTimeSeries()
      Gets the item time series.
      Returns:
      the item time series
    • toString

      public String toString()
      Overrides:
      toString in class Object