acquireLock method
Makes multiple attempts to acquire a lock by its key within give time interval.
correlationId
(optional) transaction id to trace execution through call chain.key
a unique lock key to acquire.ttl
a lock timeout (time to live) in milliseconds.timeout
a lock acquisition timeout. Return Future that receives error or null for success.
Implementation
@override
Future acquireLock(
String? correlationId, String key, int ttl, int timeout) async {
// Do nothing...
}