Interface ReqRespManager

  • All Known Implementing Classes:
    AutoRevokeReqRespManager, DefaultReqRespManager

    public interface ReqRespManager
    Interface for simulating a synchronous request and response call for asynchronous communication channels such as MQ.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CSMessage sendRequest​(java.lang.String requestId, byte[] request)
      Main method signaling sending a request with given id and waits for a response for a given time before a time-out IO exception is thrown.
      CSMessage sendRequest​(java.lang.String requestId, byte[] request, java.util.Map<java.lang.String,​java.lang.String> requestAttributes)
      Main method signaling sending a request with given id and waits for a response for a given time before a time-out IO exception is thrown.
    • Method Detail

      • sendRequest

        CSMessage sendRequest​(java.lang.String requestId,
                              byte[] request)
                       throws java.lang.IllegalArgumentException,
                              java.io.IOException,
                              MessageProcessingException
        Main method signaling sending a request with given id and waits for a response for a given time before a time-out IO exception is thrown.
        Throws:
        java.lang.IllegalArgumentException
        java.io.IOException
        MessageProcessingException
      • sendRequest

        CSMessage sendRequest​(java.lang.String requestId,
                              byte[] request,
                              java.util.Map<java.lang.String,​java.lang.String> requestAttributes)
                       throws java.lang.IllegalArgumentException,
                              java.io.IOException,
                              MessageProcessingException
        Main method signaling sending a request with given id and waits for a response for a given time before a time-out IO exception is thrown. This methods provides optional requestAttributes containing meta-data about the message.
        Throws:
        java.lang.IllegalArgumentException
        java.io.IOException
        MessageProcessingException