TransactionalSet¶
-
class
TransactionalSet(name, transaction)¶ Bases:
hazelcast.proxy.base.TransactionalProxyTransactional implementation of
Set.-
add(item)¶ Transactional implementation of
Set.add(item)- Parameters
item – (object), the new item to be added.
- Returns
(bool),
trueif item is added successfully,falseotherwise.
-
remove(item)¶ Transactional implementation of
Set.remove(item)- Parameters
item – (object), the specified item to be deleted.
- Returns
(bool),
trueif item is remove successfully,falseotherwise.
-
size()¶ Transactional implementation of
Set.size()- Returns
(int), size of the set.
-