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.
Configures component by passing configuration parameters.
configuration parameters to be set.
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
Abstract lock that implements default lock acquisition routine.
Configuration parameters
ILock