Callback to notify of success or failure sending a response.
- Since:
- 0.12.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonErrorSendingResponse(Throwable throwable) Method to process an error without sending a response, since the error that occurred cannot be recovered from.voidresponseSendFailure(Throwable throwable) Method to process a failure while sending the response to the clientvoidNotifies that the response was successfully sent.
-
Method Details
-
responseSendFailure
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
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
-