Class StoredListChainSegment<T>

java.lang.Object
com.j_spaces.kernel.list.StoredListChainSegment<T>

public class StoredListChainSegment<T> extends Object
TODO add Javadoc
Since:
7.1
Version:
1.0
Author:
Yechiel Fefer
  • Method Details

    • isSupportFifo

      public boolean isSupportFifo()
    • getHead

      public IObjectInfo<T> getHead()
      Returns the first element in the list (fifo)
    • getObjectFromHead

      public T getObjectFromHead()
      Returns the value of the first element in the list (fifo)
      Returns:
      the value of the tail of the list
    • remove

      public void remove(IObjectInfo<T> oi)
      Remove an element described by ObjectInfo. [Head] - .. - [beforeOi] - [oi] - [afterOi] - .. - [Tail]
      Parameters:
      oi - an existing element between Head and Tail
    • removeUnlocked

      public void removeUnlocked(IObjectInfo<T> oi)
      Remove an element described by ObjectInfo, while the SL is unlocked. [Head] - .. - [beforeOi] - [oi] - [afterOi] - .. - [Tail]
      Parameters:
      oi - an existing element between Head and Tail
    • removeByObject

      public boolean removeByObject(T obj)
      given an object scan the list, find it and remove it, returns true if found
    • add

      public IObjectInfo<T> add(T subject)
      store an element
    • monitor

      public void monitor()
    • establishIterScanPos

      public boolean establishIterScanPos(com.j_spaces.kernel.list.ConcurrentStoredList.SegmentedListIterator<T> iter)
    • iterNext

      public boolean iterNext(com.j_spaces.kernel.list.ConcurrentStoredList.SegmentedListIterator<T> iter)