Interface ResponseStatusCallback


@Experimental @NoImplement @MinMuleVersion("4.10.0") public interface ResponseStatusCallback
Callback to notify of success or failure sending a response.
Since:
0.12.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Method to process an error without sending a response, since the error that occurred cannot be recovered from.
    void
    Method to process a failure while sending the response to the client
    void
    Notifies that the response was successfully sent.
  • Method Details

    • responseSendFailure

      void responseSendFailure(Throwable throwable)
      Method to process a failure while sending the response to the client
      Parameters:
      throwable - exception thrown while sending the response
    • responseSendSuccessfully

      void responseSendSuccessfully()
      Notifies that the response was successfully sent.
    • onErrorSendingResponse

      default void onErrorSendingResponse(Throwable throwable)
      Method to process an error without sending a response, since the error that occurred cannot be recovered from. Implementors should override this, particularly when dealing with SDK asynchronous sources that require a completion callback notification.
      Parameters:
      throwable - exception thrown while sending the response