Metaspace.Space.lock()
Signature
Object lock (String spaceName, Object tuple, Object ... varargs)
Description
Locks the entry stored in the Space which has the key specified in the given Tuple.
Parameters
Name | Type | Description |
spaceName | String | The space name specified must be prefixed with the Metaspace name. Example ms.S1 |
tuple | Object | Tuple containing the key to search for. |
varargs | Object | Optional LockOptions specifies custom lock wait/forget choices. |
Returns
Type | Description |
Object | On success, a Tuple containing the same values as the entry that was just locked is returned. On failure, null is returned. |