Attempt to acquire the lock.
The lock key
Time-to-live in milliseconds
A unique token if acquired, or null if held by another instance
OptionalisRelease a previously acquired lock.
Only releases if the provided token matches the held token.
The lock key
The token returned by acquire
Distributed lock interface.
Implementations acquire a lock before running a scheduled job handler and release it afterward. When another instance holds the lock, the fire is skipped.