Metaspace.Space.Options.setLock()
Signature
Object setLock (Object options, boolean lock)
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
Name | Type | Description |
options | Object | The TakeOptions or PutOptions object |
lock | boolean | true - lock the key. false - do not lock the key. |
Returns
Type | Description |
Object | The updated TakeOptions/PutOptions object. |