Skip to content

bpmn-server / InstanceLocker

Class: InstanceLocker#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

new InstanceLocker(dataStore): InstanceLocker

Parameters#

Name Type
dataStore any

Returns#

InstanceLocker

Defined in#

datastore/InstanceLocker.ts:11

Properties#

dataStore#

dataStore: any

Defined in#

datastore/InstanceLocker.ts:9

Methods#

lock#

lock(id): Promise\<boolean>

Parameters#

Name Type
id any

Returns#

Promise\<boolean>

Defined in#

datastore/InstanceLocker.ts:14


try#

try(id): Promise\<boolean>

Parameters#

Name Type
id any

Returns#

Promise\<boolean>

Defined in#

datastore/InstanceLocker.ts:35


release#

release(id): Promise\<any>

Parameters#

Name Type
id any

Returns#

Promise\<any>

Defined in#

datastore/InstanceLocker.ts:52


delete#

delete(query): Promise\<any>

Parameters#

Name Type
query any

Returns#

Promise\<any>

Defined in#

datastore/InstanceLocker.ts:58


list#

list(): Promise\<any>

Returns#

Promise\<any>

Defined in#

datastore/InstanceLocker.ts:63


delay#

delay(time, result): Promise\<unknown>

Parameters#

Name Type
time any
result any

Returns#

Promise\<unknown>

Defined in#

datastore/InstanceLocker.ts:69