Interface Event<T>


  • public interface Event<T>
    The interface implemented by all events that are read from a nodes event stream
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getData()
      The event payload a JSON string or Pojo
      DataType getDataType()
      The key name of the data field.
      java.util.Optional<java.lang.Long> getId()
      The optional ID of the event
      java.lang.String getSource()
      The node URL that is the source of the event
      java.lang.String getVersion()
      Obtains the API version of the event
    • Method Detail

      • getSource

        java.lang.String getSource()
        The node URL that is the source of the event
        Returns:
        the URL of the source node
      • getDataType

        DataType getDataType()
        The key name of the data field.
        Returns:
        the key name of the data field
      • getData

        T getData()
        The event payload a JSON string or Pojo
        Returns:
        the event payload
      • getId

        java.util.Optional<java.lang.Long> getId()
        The optional ID of the event
        Returns:
        the optional ID
      • getVersion

        java.lang.String getVersion()
        Obtains the API version of the event
        Returns:
        the API version