Click or drag to resize

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.12.1
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