com.hazelcast.core

## Interface TransactionalSet<E>

- All Superinterfaces:
    DistributedObject, TransactionalObject
  All Known Implementing Classes:
    ClientTxnSetProxy

      public interface TransactionalSet<E>
      extends TransactionalObject

  Transactional implementation of `ISet`. Supports Quorum `QuorumConfig` since 3.10 in cluster versions 3.10 and higher.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `add(E e)` Add new item to transactional set.
    `boolean` | `remove(E e)` Remove item from transactional set.
    `int` | `size()` Returns the size of the set.

    - ### Methods inherited from interface com.hazelcast.core.DistributedObject

      `destroy, getName, getPartitionKey, getServiceName`

- - ### Method Detail

    - #### 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

Copyright © 2018. All rights reserved.