Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Attempt to lock all the specified keys within a specified period of time.

Namespace:  Tangosol.Net.Cache.Support
Assembly:  Coherence (in Coherence.dll) Version: 3.7.1.23 (3.7.1.23)

Syntax

C#
public static IList LockAll(
	IConcurrentCache cache,
	ICollection keys,
	int waitMillis
)

Parameters

cache
Type: Tangosol.Net.Cache..::.IConcurrentCache
The IConcurrentCache to use.
keys
Type: System.Collections..::.ICollection
A collection of keys to lock.
waitMillis
Type: System..::.Int32
The number of milliseconds to continue trying to obtain locks; pass zero to return immediately; pass -1 to block the calling thread until the lock could be obtained.

Return Value

An IList containing all the locked keys in the order opposite to the locking order (LIFO); null if timeout has occurred.

See Also