listen abstract method

  1. @override
void listen(
  1. String? correlationId,
  2. IMessageReceiver receiver

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


void listen(String? correlationId, IMessageReceiver receiver);