SpaceCompareAndTake Method (Tuple, TakeOptions) |
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.SpaceAssembly: TIBCO.ActiveSpaces.Common (in TIBCO.ActiveSpaces.Common.dll) Version: 2.0.0.0 (2.1.5.12)
SyntaxTuple CompareAndTake(
Tuple oldTuple,
TakeOptions takeOpts
)
Function CompareAndTake (
oldTuple As Tuple,
takeOpts As TakeOptions
) As Tuple
Tuple^ CompareAndTake(
Tuple^ oldTuple,
TakeOptions^ takeOpts
)
abstract CompareAndTake :
oldTuple : Tuple *
takeOpts : TakeOptions -> Tuple
Parameters
- oldTuple
- Type: Com.Tibco.As.SpaceTuple
Old tuple to be used to compare with the value in Space - takeOpts
- Type: Com.Tibco.As.SpaceTakeOptions
TakeOptions Take 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:
TupleTuple same tuple object if operation was successful, otherwise actual value in space
See Also