Click or drag to resize

InvocableCacheHelperLockAll Method

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
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.14 (14.1.1.14)
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