BlockingLockTryLock Method (Object, Int32) |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Construct a new BlockingLock for the specified lockObject and wait
for the lockObject to be locked 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 BlockingLock TryLock(
Object lockObject,
int millis
)
Parameters
- lockObject
- Type: SystemObject
The object to be locked. - millis
- Type: SystemInt32
The maximum number of milliseconds to wait for the lock.
Return Value
Type:
BlockingLockThe BlockingLock
Exceptions
Remarks
The BlockingLock.IsObjectLocked property can be checked on return
to see if the object has been locked.
See Also