Package com.hazelcast.transaction
Interface TransactionalSet<E>
- Type Parameters:
E
- the type of elements maintained by this set
- All Superinterfaces:
DistributedObject
,TransactionalObject
Transactional implementation of
ISet
.
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
Add new item to transactional set.- Parameters:
e
- item added to transactional set- Returns:
true
if item is added successfully
-
remove
Remove item from transactional set.- Parameters:
e
- item removed from transactional set- Returns:
true
if item is remove successfully
-
size
int size()Returns the size of the set.- Returns:
- the size of the set
-