IGridMapPessimisticTx TKey, TValue  LockAll Method IBM WebSphere™ eXtreme Scale Client for .NET API Specification
IBM WebSphere™ eXtreme Scale Client for .NET Release 8.6.0.0 API Specification

Locks the specified keys and tests to see if each was previously present in the data grid or Loader.

Namespace: IBM.WebSphere.Caching.Map
Assembly: Client.Api (in Client.Api.dll) Version: 8.6.0.0
Syntax

Parameters

keyList
Type: System.Collections.Generic IList TKey 
Specifies the list of keys to lock.
lockMode
Type: IBM.WebSphere.Caching.Map LockMode
Specifies the type of lock to acquire.

Return Value

A list of bool that are associated with the supplied keys, where true indicates that the key was found in the data grid or Loader (back-end persistent store).
Exceptions

ExceptionCondition
System ArgumentException Occurs when a null keyList is specified, or when a null key is specified within keyList..
IBM.WebSphere.Caching GridException Occurs when an error occurs during processing.
IBM.WebSphere.Caching.Security AccessControlException Occurs when the caller has insufficient authority to perform this operation.
Remarks

Specification details:
Required client permission:MapPermission.READ
Pessimistic locks acquired:LockMode.Shared, LockMode.Upgradable or LockMode.Exclusive
Pessimistic locks held:Yes
Cache tier:Progresses to all tiers until the key is found and the appropriate lock is acquired.
See Also