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