LockControl Interface
Interface for acquiring element locks to coordinate simultaneous edits from multiple briefcases.
Methods
Name | Description | |
---|---|---|
acquireLocks(arg: { exclusive?: Id64Arg, shared?: Id64Arg }): Promise<void> | Acquire locks on one or more elements from the lock server, if required and not already held. | |
holdsExclusiveLock(id: string): boolean | Determine whether the supplied element currently holds the exclusive lock | |
holdsSharedLock(id: string): boolean | Determine whether the supplied element currently holds a shared lock |
Properties
Name | Type | Description | |
---|---|---|---|
isServerBased Readonly | boolean | true if this LockControl uses a server-based concurrency approach. |
Defined in
- core/backend/src/IModelDb.ts Line 125
Last Updated: 13 May, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.