LocalCacheCacheLockAssign Method |
.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Assign the ownership of this Lock to the calling
thread.
Namespace:
Tangosol.Net.Cache
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
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