Interface ReqRespManager
-
- All Known Implementing Classes:
AutoRevokeReqRespManager,DefaultReqRespManager
public interface ReqRespManagerInterface 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 CSMessagesendRequest(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.CSMessagesendRequest(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.IllegalArgumentExceptionjava.io.IOExceptionMessageProcessingException
-
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.IllegalArgumentExceptionjava.io.IOExceptionMessageProcessingException
-
-