Readonlyid: stringThe unique identifier for this lock holder (lock instance). Used to identify who acquired the lock and prevent unauthorized release.
Readonlykey: IKeyThe unique identifier for the resource being locked. Multiple lock instances with the same key cannot be held simultaneously by different owners.
Readonlyttl: TimeSpan | nullThe time-to-live (TTL) duration before this lock automatically expires.
null indicates the lock does not expire and must be explicitly released.
Retrieves the current state of the lock.
The current lock state (acquired, expired, unavailable, etc.)
State and metadata methods for a lock instance. Provides read-only access to lock state and configuration properties.
IMPORT_PATH:
"@daiso-tech/core/lock/contracts"