Interface FailureResponse


  • public interface FailureResponse
    Marker interface for application-specific error responses.

    Messages can implement this interface in order to indicated that particular Response represents an application-specific error that should be treated as a messaging failure. If MessagingChannel receives a reply of this type then it will call the asError(ClusterNode) method and will fail the messaging operation with the resulting error.

    • Method Detail

      • asError

        Throwable asError​(ClusterNode fromNode)
        Converts this reply to an error.
        Parameters:
        fromNode - From which node this message was received.
        Returns:
        Error.