Class ThreadRobustList<T>

java.lang.Object
com.yahoo.concurrent.ThreadRobustList<T>
All Implemented Interfaces:
Iterable<T>

@Deprecated(forRemoval=true) public class ThreadRobustList<T> extends Object implements Iterable<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Not used, will be removed in next major release
A list which tolerates concurrent adds from one other thread while it is read. More precisely: This list is guaranteed to provide a self-consistent read view regardless of the internal order in which the primitive mutating operations on it are observed from the reading thread.

This is useful for traced information as there may be timed out threads working on the structure after it is returned upwards for consumption.

Author:
Steinar Knutsen, bratseth
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    ThreadRobustList(int initialCapacity)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T item)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an iterator over the elements of this.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an iterator over the elements of this, starting at the last element and working backwards.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • ThreadRobustList

      public ThreadRobustList()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ThreadRobustList

      public ThreadRobustList(int initialCapacity)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • add

      public void add(T item)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • iterator

      public Iterator<T> iterator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns an iterator over the elements of this. This iterator does not support remove.
      Specified by:
      iterator in interface Iterable<T>
    • reverseIterator

      public Iterator<T> reverseIterator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns an iterator over the elements of this, starting at the last element and working backwards. This iterator does not support remove.
    • isEmpty

      public boolean isEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.