Click or drag to resize
SpaceCompareAndPut Method (Tuple, Tuple, PutOptions)
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.1.5.12)
Syntax
Tuple CompareAndPut(
	Tuple oldTuple,
	Tuple newTuple,
	PutOptions putOpts
)

Parameters

oldTuple
Type: Com.Tibco.As.SpaceTuple
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.SpaceTuple
New value to replace on success
putOpts
Type: Com.Tibco.As.SpacePutOptions
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