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)
Syntaxpublic 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:
Booleantrue if the current thread acquires the lock; otherwise, false.
Exceptions
See Also