renewLock method

  1. @override
Future renewLock(
  1. MessageEnvelope message,
  2. int lockTimeout
)

Renews a lock on a message that makes it invisible from other receivers in the _queue. This method is usually used to extend the message processing time. Important: This method is not supported by RabbitMQ. Parameters:

  • message a message to extend its lock.
  • lockTimeout a locking timeout in milliseconds. Return Future that recive a null if all ok Throws error

Implementation

@override
Future renewLock(MessageEnvelope message, int lockTimeout) async {
  // Operation is not supported
  return null;
}