LocalCacheCacheLockAssign Method |
Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Assign the ownership of this Lock to the calling
thread.
Namespace:
Tangosol.Net.Cache
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntaxpublic virtual bool Assign(
long waitMillis
)
Parameters
- waitMillis
- Type: SystemInt64
The number of milliseconds to continue trying to obtain
a lock; pass zero to return immediately; pass -1 to block
the calling thread until the lock could be obtained.
Return Value
Type:
Booleantrue if lock was successful;
false otherwise.
Remarks
Note: caller of this method is expected to hold a
synchronization monitor for the Lock object while
making this call.
See Also