- TIBCO BusinessEvents®
- CEP Store
- Store
- Container
- Ignite

# Store.Container.Ignite.lock()

## Signature

`boolean lock (String url, String containerName, String key, long timeout)`

## Domain

ACTION

## Description

Acquires the lock.

## Parameters

Name | Type | Description
--- | --- | ---
`url` | `String` | Url of the Store
`containerName` | `String` | Name of the Container(i.e. Cache Name)
`key` | `String` | Key on which we need to take the lock
`timeout` | `long` | Lock timeout in miliseconds

## Returns

Type | Description
--- | ---
`boolean` | Returns true if grid acquires the lock

## Cautions

none