BlockingLockTryLock Method (Object, TimeSpan) |
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,
TimeSpan span
)
Parameters
- lockObject
- Type: SystemObject
The object to be locked. - span
- Type: SystemTimeSpan
The maximum TimeSpan 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