IAtomicLongCompareAndSet Method Hazelcast .Net Client Class Library
Atomically sets the value to the given updated value only if the current value the expected value.

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

bool CompareAndSet(
	long expect,
	long update
)

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

Reference