API Reference > imodeljs-backend > iModels > ConcurrencyControl > ConcurrencyControl.Request ConcurrencyControl.Request Class A request for locks and/or code reservations. Methods Name Description constructor(): ConcurrencyControl.Request addCodes(codes: CodeProps[]): ConcurrencyControl.Request addLocks(locks: LockProps[]): ConcurrencyControl.Request clear(): void clone(): ConcurrencyControl.Request getLockByKey(entityId: string): undefined | LockProps removeCodes(filter: (c: CodeProps) => boolean, context: any): void removeLocks(filter: (l: LockProps) => boolean, context: any): void replaceLocksWithChannelLock(channelRootId: string): void getElementLock(entityId: string, scope: LockScope): LockProps Static getHubCodeSpecsLock(concurrencyControl: ConcurrencyControl): Lock Static getHubSchemaLock(concurrencyControl: ConcurrencyControl): Lock Static getModelLock(entityId: string, scope: LockScope): LockProps Static toHubCode(concurrencyControl: ConcurrencyControl, code: CodeProps): HubCode Static toHubCodes(concurrencyControl: ConcurrencyControl, codes: CodeProps[]): HubCode[] Static toHubLock(concurrencyControl: ConcurrencyControl, reqLock: LockProps): Lock Static toHubLocks(concurrencyControl: ConcurrencyControl, locks: LockProps[]): Lock[] Static Properties Name Type Description codes Accessor ReadOnly CodeProps[] codeSpecsLock Accessor StaticReadOnly LockProps dbLock Accessor StaticReadOnly LockProps isEmpty Accessor ReadOnly boolean locks Accessor ReadOnly LockProps[] schemaLock Accessor StaticReadOnly LockProps Defined in core/backend/src/ConcurrencyControl.ts Line 1009 Last Updated: 11 June, 2024