Interface ServerSentEvent


  • public interface ServerSentEvent
    A server sent event.
    Since:
    1.10
    • Method Detail

      • builder

        static ServerSentEventBuilder builder()
        Creates a builder for an event.
        Returns:
        a builder for an event
      • getId

        @Nullable
        String getId()
        The “id” value of the event.
        Returns:
        the “id” value of the event
      • getEvent

        @Nullable
        String getEvent()
        The “event” value of the event.
        Returns:
        the “event” value of the event
      • getData

        @Nullable
        String getData()
        The “data” value of the event.
        Returns:
        the “data” value of the event
      • getComment

        @Nullable
        String getComment()
        The “comment” value of the event.
        Returns:
        the “comment” value of the event