Metaspace.Space.Options.setLock()

Signature

Object setLock (Object options, boolean lock)

Domain

ACTION

Description

For TakeOptions - Specify whether or not to lock the key of a tuple after it is removed from a space.
For PutOptions - Specify whether or not to lock the key of a tuple after the tuple has been stored in a space.

Parameters

NameTypeDescription
optionsObjectThe TakeOptions or PutOptions object
lockboolean true - lock the key. false - do not lock the key.

Returns

TypeDescription
ObjectThe updated TakeOptions/PutOptions object.

Cautions

none