Looks for a tuple containing a specified value, and if it is found, takes the tuple value. If there is no mismatch compareAndTake returns same java object given as oldTuple

Namespace: Com.Tibco.As.Space
Assembly: TIBCO.ActiveSpaces.Common (in TIBCO.ActiveSpaces.Common.dll) Version: 2.1.0.0 (2.1)

Syntax

C#
Tuple CompareAndTake(
	Tuple oldTuple
)
Visual Basic
Function CompareAndTake ( _
	oldTuple As Tuple _
) As Tuple
Visual C++
Tuple^ CompareAndTake(
	Tuple^ oldTuple
)

Parameters

oldTuple
Type: Com.Tibco.As.Space..::..Tuple
Old tuple to be used to compare with the value in Space

Return Value

Tuple same tuple object if operation was successful, otherwise actual value in space

See Also