- TIBCO BusinessEvents®
- ActiveSpaces(Deprecated)
- Metaspace
- Space

# Metaspace.Space.compareAndPutAll()

## Signature

`Object compareAndPutAll (String spaceName, Object compareTuples, Object updateTuples, Object ... varags)`

## Domain

ACTION

## Description

Batch compareAndPut operation.

## Parameters

Name | Type | Description
--- | --- | ---
`spaceName` | `String` | The space name specified must be prefixed with the Metaspace name. Example ms.S1
`compareTuples` | `Object` | The tuple to be compared
`updateTuples` | `Object` | The tuple to be replaced if the comparison is true.
`varargs` | `Object` | Optional PutOptions specified

## Returns

Type | Description
--- | ---
`Object` | List containing the result of each compareAndPut (current tuple values). If comparison is succeeded, this list should match the update-list. Otherwise, the returned list could be used for next compareAndPutAll call's compare-list.

## Cautions

none