Same as CompareAndPut(Tuple, Tuple) with PutOptions to specify put options

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

Syntax

C#
Tuple CompareAndPut(
	Tuple oldTuple,
	Tuple newTuple,
	PutOptions putOpts
)
Visual Basic
Function CompareAndPut ( 
	oldTuple As Tuple,
	newTuple As Tuple,
	putOpts As PutOptions
) As Tuple
Visual C++
Tuple^ CompareAndPut(
	Tuple^ oldTuple, 
	Tuple^ newTuple, 
	PutOptions^ putOpts
)
F#
abstract CompareAndPut : 
        oldTuple : Tuple * 
        newTuple : Tuple * 
        putOpts : PutOptions -> Tuple 

Parameters

oldTuple
Type: Com.Tibco.As.Space..::..Tuple
Old value. This tuple is allowed to be null. This indicates user wants the operation to be successful only if there is no value for it
newTuple
Type: Com.Tibco.As.Space..::..Tuple
New value to replace on success
putOpts
Type: Com.Tibco.As.Space..::..PutOptions
Put options to specify custom lock wait, lock/unlock options. Forget option is ignored since on a mismatch ActiveSpaces needs to return actual value

Return Value

Type: Tuple
newTuple on success, otherwise the current value in Space

See Also