Makes multiple attempts to acquire a lock by its key within give time interval.
(optional) transaction id to trace execution through call chain.
a unique lock key to acquire.
a lock timeout (time to live) in milliseconds.
a lock acquisition timeout.
callback function that receives error or null for success.
Releases prevously acquired lock by its key.
(optional) transaction id to trace execution through call chain.
a unique lock key to release.
callback function that receives error or null for success.
Makes a single attempt to acquire a lock by its key. It returns immediately a positive or negative result.
(optional) transaction id to trace execution through call chain.
a unique lock key to acquire.
a lock timeout (time to live) in milliseconds.
callback function that receives a lock result or error.
Generated using TypeDoc
Interface for locks to synchronize work or parallel processes and to prevent collisions.
The lock allows to manage multiple locks identified by unique keys.