Framework to send requests and receive matching responses (matching on request ID). Multiple requests can be sent at a time. Whenever a response is received, the correct
RspCollector
is looked up (key = id) and its method
receiveResponse()
invoked. A caller may use
done()
to signal that no more responses are expected, and that the corresponding entry may be removed.
RequestCorrelator
can be installed at both client and server sides, it can also switch roles dynamically; i.e., send a request and at the same time process an incoming request (when local delivery is enabled, this is actually the default).
@author Bela Ban