TransactionalList

class TransactionalList(name, transaction, context)[source]

Bases: hazelcast.proxy.base.TransactionalProxy, Generic[hazelcast.types.ItemType]

Transactional implementation of List.

add(item: hazelcast.types.ItemType) bool[source]

Transactional implementation of List.add(item)

Parameters

item – The new item to be added.

Returns

True if the item is added successfully, False otherwise.

remove(item: hazelcast.types.ItemType) bool[source]

Transactional implementation of List.remove(item)

Parameters

item – The specified item to be removed.

Returns

True if the item is removed successfully, False otherwise.

size() int[source]

Transactional implementation of List.size()

Returns

The size of the list.