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 MQTT.

  • message a message to extend its lock.
  • lockTimeout a locking timeout in milliseconds. Returns (optional) Future that receives an null for success. Throws error

Implementation

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