Interface SseHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SseHandler
The Server Sent Event Handler is used to consume Server Sent Events https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    comments are piped to this method and then immediately thrown away
    void
    onEvent(Event event)
    Dispatched event
  • Method Details

    • onEvent

      void onEvent(Event event)
      Dispatched event
      Parameters:
      event - the event
    • onComment

      default void onComment(String line)
      comments are piped to this method and then immediately thrown away
      Parameters:
      line - the comment