Package ratpack.sse

Interface ServerSentEvent

  • All Known Subinterfaces:
    Event<T>

    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
        java.lang.String getId()
        The “id” value of the event.
        Returns:
        the “id” value of the event
      • getEvent

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

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

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