Interface Event<E>

Type Parameters:
E - the type of the payload data.
All Known Implementing Classes:
CustomLightRequestEvent, MedicalTechnologyAutomationProposalEvent, MedicalTechnologyAutomationRequestEvent, MedicalTechnologyEvent, RoomEvent

public interface Event<E>
Interface that models a generic event with no additional fields but only with a key, a payload data of type E and the dateTime of the event itself.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the data payload of the event.
    Get the date time in string format.
    Get the key of the event.
  • Method Details

    • getKey

      String getKey()
      Get the key of the event.
      Returns:
      the key.
    • getData

      E getData()
      Get the data payload of the event.
      Returns:
      the data payload.
    • getDateTime

      String getDateTime()
      Get the date time in string format.
      Returns:
      the string of date time.