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
Dummy lock implementation that doesn't do anything.
It can be used in testing or in situations when lock is required but shall be disabled.
ILock