Package io.hekate.messaging.operation
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. IfMessagingChannel
receives a reply of this type then it will call theasError(ClusterNode)
method and will fail the messaging operation with the resulting error.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Throwable
asError(ClusterNode fromNode)
Converts this reply to an 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.
-
-