Package com.j_spaces.kernel.list
Class StoredListChainSegment<T>
java.lang.Object
com.j_spaces.kernel.list.StoredListChainSegment<T>
TODO add Javadoc
- Since:
- 7.1
- Version:
- 1.0
- Author:
- Yechiel Fefer
-
Method Summary
Modifier and TypeMethodDescriptionstore an elementbooleanestablishIterScanPos(com.j_spaces.kernel.list.ConcurrentStoredList.SegmentedListIterator<T> iter) getHead()Returns the first element in the list (fifo)Returns the value of the first element in the list (fifo)booleanbooleanvoidmonitor()voidremove(IObjectInfo<T> oi) Remove an element described by ObjectInfo.booleanremoveByObject(T obj) given an object scan the list, find it and remove it, returns true if foundvoidremoveUnlocked(IObjectInfo<T> oi) Remove an element described by ObjectInfo, while the SL is unlocked.
-
Method Details
-
isSupportFifo
public boolean isSupportFifo() -
getHead
Returns the first element in the list (fifo) -
getObjectFromHead
Returns the value of the first element in the list (fifo)- Returns:
- the value of the tail of the list
-
remove
Remove an element described by ObjectInfo. [Head] - .. - [beforeOi] - [oi] - [afterOi] - .. - [Tail]- Parameters:
oi- an existing element between Head and Tail
-
removeUnlocked
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
given an object scan the list, find it and remove it, returns true if found -
add
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)
-