listen abstract method

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 method


void listen(String? correlationId, IMessageReceiver receiver);