Interface SseEvent


@Immutable public interface SseEvent
  • Field Details

  • Method Details

    • clientIds

      Set<String> clientIds()
    • excludeClientIds

      Set<String> excludeClientIds()
      Is ignored when clientIds is not empty
    • jsonView

      Optional<Class<?>> jsonView()
    • event

      @Default default String event()
    • data

      Object data()
    • retry

      Optional<Duration> retry()
    • id

    • comment

      Optional<String> comment()
    • ofData

      static SseEvent ofData(Object data)
      Creates a SseEvent that just contains the data. The data will be converted when it's not a String instance.
    • ofEvent

      static SseEvent ofEvent(String event)
      Creates a SseEvent that contains an event and an empty string
    • of

      static SseEvent of(String event, Object data)
      Creates a SseEvent that just contains an event and data. The data will be converted when it's not a String instance
    • builder

      static SseEvent.Builder builder()