receive abstract method

  1. @override
Future<MessageEnvelope?> receive(
  1. String? correlationId,
  2. int waitTimeout
)
override

Receives an incoming message and removes it from the queue.

  • correlationId (optional) transaction id to trace execution through call chain.
  • waitTimeout a timeout in milliseconds to wait for a message to come. Return Future that receives a message Throws error.

Implementation

@override
Future<MessageEnvelope?> receive(String? correlationId, int waitTimeout);