listen abstract method
Listens for incoming messages and blocks the current thread until queue is closed.
correlationId
(optional) transaction id to trace execution through call chain.receiver
a receiver to receive incoming messages.
See IMessageReceiver See receive method
Implementation
void listen(String? correlationId, IMessageReceiver receiver);