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

# Metaspace.Space.invokeLeeches()

## Signature

`Object invokeLeeches(String spaceName, String codeName, Object contextTuple, Object... varargs)`

## Domain

ACTION

## Description

Invokes in parallel the appropriate invoke method of the specified class on all of the members of the Space which have a distribution role of leech.

## Parameters

Name | Type | Description
--- | --- | ---
`spaceName` | `String` | The space name specified must be prefixed with the Metaspace name. Example ms.S1
`codeName` | `String` | Java className or BE RuleFunction name. Default is BE RuleFunction Name
`contextTuple` | `Object` | Specify context Tuple if available, otherwise null is ok
`varargs` | `Object[]` | Optional varargs of type InvokeOptions

## Returns

Type | Description
--- | ---
`InvokeResultList` | Result of the invocation

## Cautions

none