Metaspace.Space.compareAndTake()

Signature

Object compareAndTake (String spaceName, Object compareTuple, Object ... varargs)

Domain

ACTION

Description

Compare the entry with the entry passed, and if equals, then take (atomic remove) it.

Parameters

NameTypeDescription
spaceNameStringThe space name specified must be prefixed with the Metaspace name. Example ms.S1
compareTupleObjectThe tuple whose fields have to be compared, and take if successful
varargsObjectOptional TakeOptions specified

Returns

TypeDescription
ObjectThe Tuple that was taken.

Cautions

none