Class EventNotification


  • public final class EventNotification
    extends java.lang.Object
    Class holding all data received from an event that the remote station sent
    • Constructor Detail

      • EventNotification

        public EventNotification​(AttributeAddress attributeAddress,
                                 DataObject newValue,
                                 java.lang.Long timestamp)
        Creates a new event notification without timestamp
        Parameters:
        attributeAddress - the attribute address
        newValue - The new value of the attribute
        timestamp - The timestamp of the remote station when the event has been raised
    • Method Detail

      • getTimestamp

        public java.lang.Long getTimestamp()
        Returns:
        The timestamp when this event has been generated at the remote station. Null if there is no timestamp
      • hasTimestamp

        public boolean hasTimestamp()
        Returns:
        True if this event has a timestamp