Interface SseSource

All Superinterfaces:
Source<SseEvent>
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 SseSource extends Source<SseEvent>
A source for SseEvents.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GenericType<SseSource>
    A type representing an SSE source.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handler for a newly received event.

    Methods inherited from interface Source

    onClose, onError, onOpen
    Modifier and Type
    Method
    Description
    default void
    Handler for event stream termination.
    default void
    Handler for errors encountered during processing of source.
    default void
    Handler for event stream creation.
  • Field Details

  • Method Details

    • onEvent

      void onEvent(SseEvent event)
      Description copied from interface: Source
      Handler for a newly received event.
      Specified by:
      onEvent in interface Source<SseEvent>
      Parameters:
      event - the event