- TIBCO BusinessEvents®
- ActiveSpaces(Deprecated)
- AS

# AS.lockEvents()

## Signature

`Object[] lockEvents(String destinationUri, SimpleEvent[] keys, Object... options)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Batch lock operation.

## Parameters

Name | Type | Description
--- | --- | ---
`destinationUri` | `String` | AS Destination URI
`keys` | `SimpleEvent[]` | The key array of events to be locked
`options` | `Object` | Optional lock wait time in milliseconds

## Returns

Type | Description
--- | ---
`SimpleEvent[] or Object[M][N][2]` | The locked events