Interface SseConnection

All Known Implementing Classes:
NettySseConnection

@InternalApi public interface SseConnection
A writable SSE connection to a client.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Closes the connection.
    boolean
    Returns true if the underlying channel is writable.
    Returns the no-op connection singleton: not writable, drops every sent event.
    void
    send(SseEvent event)
    Sends an SSE event to the client.
  • Method Details

    • isWritable

      boolean isWritable()
      Returns true if the underlying channel is writable.
    • send

      void send(SseEvent event)
      Sends an SSE event to the client.
    • close

      default void close()
      Closes the connection. Idempotent.
    • noop

      static SseConnection noop()
      Returns the no-op connection singleton: not writable, drops every sent event.