TransactionalSet

class TransactionalSet(name, transaction)

Bases: hazelcast.proxy.base.TransactionalProxy

Transactional implementation of Set.

add(item)

Transactional implementation of Set.add(item)

Parameters:item – (object), the new item to be added.
Returns:(bool), true if item is added successfully, false otherwise.
remove(item)

Transactional implementation of Set.remove(item)

Parameters:item – (object), the specified item to be deleted.
Returns:(bool), true if item is remove successfully, false otherwise.
size()

Transactional implementation of Set.size()

Returns:(int), size of the set.