IMultiMapK, VLock Method (K, Int64, TimeUnit)Hazelcast .Net Client Class Library
Acquires the lock for the specified key for the specified lease time.

Namespace: Hazelcast.Core
Assembly: HazelcastClient3x (in HazelcastClient3x.dll) Version: 3.3.0.9
Syntax

void Lock(
	K key,
	long leaseTime,
	TimeUnit timeUnit
)

Parameters

key
Type: K
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

Reference