com.hazelcast.core

## Interface TransactionalList<E>

- Type Parameters:
    `E` - the type of elements maintained by this list
  All Superinterfaces:
    DistributedObject, TransactionalObject
  All Known Implementing Classes:
    ClientTxnListProxy

      public interface TransactionalList<E>
      extends TransactionalObject

  Transactional implementation of `IList`.

  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)` Adds a new item to the transactional list.
    `boolean` | `remove(E e)` Removes an item from the transactional list.
    `int` | `size()` Returns the size of the list.

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

      `destroy, getName, getPartitionKey, getServiceName`

- - ### Method Detail

    - #### add

          boolean add(E e)

      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

          boolean remove(E e)

      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

Copyright © 2019. All rights reserved.