Click or drag to resize

InvocableCacheHelperLockAll Method

.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Attempt to lock all the specified keys within a specified period of time.

Namespace:  Tangosol.Net.Cache.Support
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntax
C#
public static IList LockAll(
	IConcurrentCache cache,
	ICollection keys,
	int waitMillis
)

Parameters

cache
Type: Tangosol.Net.CacheIConcurrentCache
The IConcurrentCache to use.
keys
Type: System.CollectionsICollection
A collection of keys to lock.
waitMillis
Type: SystemInt32
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

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