TransactionalSet¶
- class TransactionalSet(name, transaction, context)[source]¶
Bases:
hazelcast.proxy.base.TransactionalProxyTransactional implementation of
Set.- add(item)[source]¶
Transactional implementation of
Set.add(item)- Parameters
item – The new item to be added.
- Returns
Trueif item is added successfully,Falseotherwise.- Return type
hazelcast.future.Future[bool]
- remove(item)[source]¶
Transactional implementation of
Set.remove(item)- Parameters
item – The specified item to be deleted.
- Returns
Trueif item is remove successfully,Falseotherwise.- Return type
hazelcast.future.Future[bool]
- size()[source]¶
Transactional implementation of
Set.size()- Returns
Size of the set.
- Return type