Distributed implementation of Lock
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.7.1
Syntax
The ILock type exposes the following members.
Methods
Name | Description | |
---|---|---|
Destroy | Destroys this object cluster-wide. (Inherited from IDistributedObject.) | |
ForceUnlock | Releases the lock regardless of the lock owner. | |
GetLockCount | Returns re-entrant lock hold count, regardless of lock ownership. | |
GetName | Returns the unique name for this IDistributedObject. (Inherited from IDistributedObject.) | |
GetPartitionKey | Returns the key of partition this IDistributedObject is assigned to. (Inherited from IDistributedObject.) | |
GetRemainingLeaseTime | Returns remaining lease time in milliseconds. | |
GetServiceName | Returns the service name for this object. (Inherited from IDistributedObject.) | |
IsLocked | Returns whether this lock is locked or not. | |
IsLockedByCurrentThread | Returns whether this lock is locked by current thread or not. | |
Lock |
Acquires the lock.
| |
Lock(Int64, NullableTimeUnit) | Acquires the lock for the specified lease time. | |
TryLock |
Tries to acquires the lock and returns immediately.
| |
TryLock(Int64, NullableTimeUnit) | Tries to acquires the lock for the specified lease time. | |
Unlock | Releases the lock. |
See Also