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

# Metaspace.Space.compareAndTakeAll()

## Signature

`Object compareAndTakeAll (String spaceName, Object compareTuples, Object ... varargs)`

## Domain

ACTION

## Description

Batch compareAndTake operation.

## Parameters

Name | Type | Description
--- | --- | ---
`spaceName` | `String` | The space name specified must be prefixed with the Metaspace name. Example ms.S1
`compareTuples` | `Object` | The Collection of tuples whose fields have to be compared, and taken if successful
`varargs` | `Object` | Optional TakeOptions specified

## Returns

Type | Description
--- | ---
`Object` | List of Tuples where comparison/take failed. If the returned list is empty, full collection was successfully matched.

## Cautions

none