complete method

  1. @override
Future complete(
  1. MessageEnvelope message

Permanently removes a message from the queue. This method is usually used to remove the message after successful processing.

  • message a message to remove. Return (optional) Future that receives or null for success. Throw error


Future complete(MessageEnvelope message) async {
  if (message.getReference() == null) {
    return null;
  int lockKey = message.getReference();
  logger.trace(message.correlation_id, 'Completed message %s at %s',
      [message, toString()]);