Interface TransactionalSet<E>

Type Parameters:
E - the type of elements maintained by this set
All Superinterfaces:
DistributedObject, TransactionalObject

public interface TransactionalSet<E> extends TransactionalObject
Transactional implementation of ISet.

Supports split brain protection SplitBrainProtectionConfig since 3.10 in cluster versions 3.10 and higher.

  • Method Details

    • add

      boolean add(E e)
      Add new item to transactional set.
      Parameters:
      e - item added to transactional set
      Returns:
      true if item is added successfully
    • remove

      boolean remove(E e)
      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