Click or drag to resize

BlockingTryEnter Method (Object, Int32)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Attempts, for the specified number of milliseconds, to acquire an exclusive lock on the specified object while still respecting the calling thread's ThreadTimeout

Namespace:  Tangosol.Util
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public static bool TryEnter(
	Object obj,
	int millis
)

Parameters

obj
Type: SystemObject
The object on which to acquire the lock.
millis
Type: SystemInt32
The maximum number of milliseconds to wait for the lock.

Return Value

Type: Boolean
true if the current thread acquires the lock; otherwise, false.
Exceptions
ExceptionCondition
ThreadInterruptedException If the thread is interrupted.
See Also