SpaceCompareAndPut Method (Tuple, Tuple, PutOptions) |
Namespace: Com.Tibco.As.SpaceAssembly: TIBCO.ActiveSpaces.Common (in TIBCO.ActiveSpaces.Common.dll) Version: 2.0.0.0 (2.1.5.12)
SyntaxTuple CompareAndPut(
Tuple oldTuple,
Tuple newTuple,
PutOptions putOpts
)
Function CompareAndPut (
oldTuple As Tuple,
newTuple As Tuple,
putOpts As PutOptions
) As Tuple
Tuple^ CompareAndPut(
Tuple^ oldTuple,
Tuple^ newTuple,
PutOptions^ putOpts
)
abstract CompareAndPut :
oldTuple : Tuple *
newTuple : Tuple *
putOpts : PutOptions -> Tuple
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:
TuplenewTuple on success, otherwise the current value in Space
See Also