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

# Metaspace.Space.setPersistenceType()

## Signature

`String setPersistenceType (Object spaceDef, String persistenceType)`

## Domain

ACTION

## Description

Sets persistence type for provided space definition

## Parameters

Name | Type | Description
--- | --- | ---
`spaceDef` | `Object` | Space definition
`persistenceType` | `String` | Desired persistence type as NONE, SHARE_NOTHING, or SHARE_ALL

## Returns

Type | Description
--- | ---
`String` | Previous space persistence type

## Cautions

none