- Preparing search index...
- The search index is not available
Kosmos v26.1.1
Properties
Protected databaseManager
Private Optional lockDatabase
Methods
acquireLock
- acquireLock(entityId: string, byUser: string, expireSeconds: number): Promise<void>
-
Parameters
-
entityId: string
-
byUser: string
-
expireSeconds: number
Returns Promise<void>
extendLock
- extendLock(entityId: string, byUser: string, expireSeconds: number): Promise<void>
-
Parameters
-
entityId: string
-
byUser: string
-
expireSeconds: number
Returns Promise<void>
Private generateLockKey
- generateLockKey(entityId: string): string
-
Returns string
getLockInfo
- getLockInfo(entityId: string): Promise<LockInfo>
-
Returns Promise<LockInfo>
releaseLock
- releaseLock(entityId: string): Promise<boolean>
-
Returns Promise<boolean>
Locks entity