| IAtomicLongCompareAndSet Method |
Atomically sets the value to the given updated value
only if the current value
the expected value.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.11
Syntax bool CompareAndSet(
long expect,
long update
)
Function CompareAndSet (
expect As Long,
update As Long
) As Boolean
bool CompareAndSet(
long long expect,
long long update
)
abstract CompareAndSet :
expect : int64 *
update : int64 -> bool
Parameters
- expect
- Type: SystemInt64
the expected value - update
- Type: SystemInt64
the new value
Return Value
Type:
Boolean
true if successful; or false if the actual value
was not equal to the expected value.
See Also