Interface FlowSseClient.SseEventHandler

Enclosing class:
FlowSseClient

public static interface FlowSseClient.SseEventHandler
Interface for handling SSE events and errors. Implementations can process received events and handle any errors that occur during the SSE connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when an error occurs during the SSE connection.
    void
    Called when an SSE event is received.
  • Method Details

    • onEvent

      void onEvent(FlowSseClient.SseEvent event)
      Called when an SSE event is received.
      Parameters:
      event - the received SSE event containing id, type, and data
    • onError

      void onError(Throwable error)
      Called when an error occurs during the SSE connection.
      Parameters:
      error - the error that occurred