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

# Metaspace.Space.compareAndTake()

## Signature

`Object compareAndTake (String spaceName, Object compareTuple, Object ... varargs)`

## Domain

ACTION

## Description

Compare the entry with the entry passed, and if equals, then take (atomic remove) it.

## Parameters

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

## Returns

Type | Description
--- | ---
`Object` | The Tuple that was taken.

## Cautions

none