Interface EventSource.Event<D>

All Known Implementing Classes:
HttpClient.EventImpl
Enclosing interface:
EventSource<D>

public static interface EventSource.Event<D>
A single Server Sent Event, received from peer.
  • Method Summary

    Modifier and Type
    Method
    Description
    an SSE comment concatenated
    an SSE "data" line.
    id()
    an SSE event id.
    boolean
    No name, id and data in event ( only comment )
    an SSE event name
  • Method Details

    • isEmpty

      boolean isEmpty()
      No name, id and data in event ( only comment )
      Returns:
      true, if the event has no name, id and data. false, otherwise
    • name

      String name()
      an SSE event name
      Returns:
      the event name
    • id

      String id()
      an SSE event id. this can be used to request events starting from specified
      Returns:
      the event id
      See Also:
    • data

      D data()
      an SSE "data" line.
      Returns:
      the event data
    • comment

      String comment()
      an SSE comment concatenated
      Returns:
      the event comment