I haven't been able to find any examples of how the RendezvousChannel works in Spring Integration. Does anyone know of any resources?
I've read that RendezvousChannel is useful for adapting request/response clients to the asynchronous messaging in Spring Integration.
RendezvousChannel extends QueueChannel and exhibits the same behaviour:
Internally however, RendezvousChannel uses a capacity of 0 in conjunction with a SynchronousQueue. Therefore, senders will block until receivers have finished, well, receiving and vice versa, basically establishing synchronous communication.
As for examples, I don't think there are any yet.
If you want to get an impression of how RendezvousChannel can be used as temporary reply channel for implementing request/reply scenarios (as hinted at in the reference documentation spring channel-implementations, section 4.1.2), have a look at the source code of the sendAndReceive method of MessageChannelTemplate. That one uses PollableChannel implementation internally, but the pattern could be easily transfered RendezvousChannel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With