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

# Metaspace.Space.setReplicationPolicy()

## Signature

`int setReplicationPolicy (Object spaceDef, String policy)`

## Domain

ACTION

## Description

Sets replication policy for provided space definition

## Parameters

Name | Type | Description
--- | --- | ---
`spaceDef` | `Object` | Space definition
`policy` | `String` | Desired space replication policy as SYNC, or ASYNC

## Returns

Type | Description
--- | ---
`String` | Previous space replication policy

## Cautions

none