Interface MessageResponseCallback

  • All Known Implementing Classes:
    AutoRevokeReqRespManager, DefaultReqRespManager

    public interface MessageResponseCallback
    Callback interface used to signal that a response targeted for this client (i.e destinationId = current sourceId)

    Main method is responseRecieved

    Important only messages with a destination matching this source id should be sent through this callback.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void responseReceived​(byte[] requestData, CSMessage responseMessage, java.util.Map<java.lang.String,​java.lang.String> messageAttributes)
      Method signaling that a response was received.
    • Method Detail

      • responseReceived

        void responseReceived​(byte[] requestData,
                              CSMessage responseMessage,
                              java.util.Map<java.lang.String,​java.lang.String> messageAttributes)
                       throws MessageContentException,
                              MessageProcessingException
        Method signaling that a response was received.

        Important only messages with a destination matching this source id should be sent through this callback.

        Parameters:
        requestData - the original request data
        responseMessage - the response message that was received.
        messageAttributes - meta data related to the message such as reply-to queues or correlation id etc if underlying implementation supports it.
        Throws:
        MessageContentException - if content of the message was invalid.
        MessageProcessingException - if internal error occurred processing the message.