Interface SseSink

All Superinterfaces:
AutoCloseable, Sink<SseEvent>

public interface SseSink extends Sink<SseEvent>
A sink for SSE events.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GenericType<SseSink>
    Type of SSE event sinks.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close SSE sink.
    emit(SseEvent event)
    Emits an event using to the sink.
  • Field Details

  • Method Details

    • emit

      SseSink emit(SseEvent event)
      Emits an event using to the sink.
      Specified by:
      emit in interface Sink<SseEvent>
      Parameters:
      event - the event to emit
      Returns:
      this sink
    • close

      void close()
      Close SSE sink.
      Specified by:
      close in interface AutoCloseable