Class TimedEvent<T extends Comparable<T> & Serializable>

    • Constructor Detail

      • TimedEvent

        public TimedEvent​(TimedEventTypeInterface type,
                          Serializable sourceId,
                          Serializable content,
                          T timeStamp)
        Construct a new timed event, where compliance with the metadata is verified.
        Parameters:
        type - TimedEventTypeInterface; the eventType of the event.
        sourceId - Serializable; the source of the event.
        content - Serializable; the content of the event.
        timeStamp - T; the timeStamp.
      • TimedEvent

        public TimedEvent​(TimedEventTypeInterface type,
                          Serializable sourceId,
                          Serializable content,
                          T timeStamp,
                          boolean verifyMetaData)
        Construct a new timed event, with a choice to verify compliance with metadata.
        Parameters:
        type - TimedEventTypeInterface; the eventType of the event.
        sourceId - Serializable; the source of the event.
        content - Serializable; the content of the event.
        timeStamp - T; the timeStamp.
        verifyMetaData - boolean; whether to verify the compliance with metadata or not