Metaspace.Space.lock()

Signature

Object lock (String spaceName, Object tuple, Object ... varargs)

Domain

ACTION

Description

Locks the entry stored in the Space which has the key specified in the given Tuple.

Parameters

NameTypeDescription
spaceNameStringThe space name specified must be prefixed with the Metaspace name. Example ms.S1
tupleObjectTuple containing the key to search for.
varargsObjectOptional LockOptions specifies custom lock wait/forget choices.

Returns

TypeDescription
ObjectOn success, a Tuple containing the same values as the entry that was just locked is returned. On failure, null is returned.

Cautions

none