IBM WebSphere™ eXtreme Scale Client for .NET Release 8.6.0.0 API Specification
Assembly: Client.Api (in Client.Api.dll) Version: 8.6.0.0
Specification details:
Locks the specified keys and retrieves the associated values. If a value is not found, a null is returned in the list.
Namespace: IBM.WebSphere.Caching.MapIf the map supports null values, use the LockAll(IList TKey , LockMode) or the ContainsKeyAll(IList TKey ) to test for a key that might have a null value.
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 values that are associated with the supplied keys. If the value associated with a particular key is not in the data grid, null is returned in the list at the position that is associated with the key.Exceptions
Exception | Condition |
---|---|
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
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 keys are found and the appropriate locks are acquired. |
See Also