Interface SseFailureContext


@Experimental @NoImplement @MinMuleVersion("4.10.0") public interface SseFailureContext
Error context. A successful SSE response is a 200 OK response that contains the header Content-Type: text/event-stream. Then, an SSE connection can fail because of an exception, or because the response doesn't satisfy the mentioned condition. This context provides the corresponding object (the error or the response). It also has a method to stop the retry mechanism in case it's necessary for the consumer.
Since:
0.12.0
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    When a connection failure handler calls it, the source should abort the retrying mechanism.
  • Method Details

    • error

      Throwable error()
      Returns:
      the exception.
    • response

      HttpResponse response()
      Returns:
      the SSE connection failure response.
    • stopRetrying

      void stopRetrying()
      When a connection failure handler calls it, the source should abort the retrying mechanism.