Package com.hazelcast.transaction
Interface TransactionalList<E>
- Type Parameters:
E
- the type of elements maintained by this list
- All Superinterfaces:
DistributedObject
,TransactionalObject
Transactional implementation of
IList
.
Supports split brain protection SplitBrainProtectionConfig
since 3.10 in
cluster versions 3.10 and higher.
-
Method Summary
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getDestroyContextForTenant, getName, getPartitionKey, getServiceName
-
Method Details
-
add
Adds a new item to the transactional list.- Parameters:
e
- the new item added to the transactional list- Returns:
true
if the item is added successfully
-
remove
Removes an item from the transactional list.- Parameters:
e
- item to remove the transactional list- Returns:
true
if the item is removed successfully
-
size
int size()Returns the size of the list.- Returns:
- the size of the list
-