| IMultiMapTKey, TValueLock Method (TKey, Int64, TimeUnit) |
Acquires the lock for the specified key for the specified lease time.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.3
Syntax void Lock(
TKey key,
long leaseTime,
TimeUnit timeUnit
)
Sub Lock (
key As TKey,
leaseTime As Long,
timeUnit As TimeUnit
)
void Lock(
TKey key,
long long leaseTime,
TimeUnit timeUnit
)
abstract Lock :
key : 'TKey *
leaseTime : int64 *
timeUnit : TimeUnit -> unit
Parameters
- key
- Type: TKey
key to lock. - leaseTime
- Type: SystemInt64
time to wait before releasing the lock. - timeUnit
- Type: Hazelcast.CoreTimeUnit
unit of time to specify lease time.
See Also