Interface SseEvent<T>


public interface SseEvent<T>
Represents the entire SSE response from the server
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a comment string that accompanies the event.
    Get event data.
    id()
    Get event identifier.
    Get event name.
  • Method Details

    • id

      String id()
      Get event identifier.

      Contains value of SSE "id" field. This field is optional. Method may return null, if the event identifier is not specified.

      Returns:
      event id.
    • name

      String name()
      Get event name.

      Contains value of SSE "event" field. This field is optional. Method may return null, if the event name is not specified.

      Returns:
      event name, or null if not set.
    • comment

      String comment()
      Get a comment string that accompanies the event.

      Contains value of the comment associated with SSE event. This field is optional. Method may return null, if the event comment is not specified.

      Returns:
      comment associated with the event.
    • data

      T data()
      Get event data.