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 io.helidon.webclient.spi.Source

    onClose, onError, onOpen
  • 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