Interface ConcurrentIntrusiveList.Element<T extends ConcurrentIntrusiveList.Element<T>>
- Type Parameters:
T
- the element that will be used for the list.
- All Known Implementing Classes:
RecordEventsSpanImpl
- Enclosing class:
ConcurrentIntrusiveList<T extends ConcurrentIntrusiveList.Element<T>>
public static interface ConcurrentIntrusiveList.Element<T extends ConcurrentIntrusiveList.Element<T>>
This is an interface that must be implemented by any element that uses
ConcurrentIntrusiveList
.-
Method Details
-
getNext
Returns a reference to the next element in the list.- Returns:
- a reference to the next element in the list.
-
setNext
Sets the reference to the next element in the list.- Parameters:
element
- the reference to the next element in the list.
-
getPrev
Returns a reference to the previous element in the list.- Returns:
- a reference to the previous element in the list.
-
setPrev
Sets the reference to the previous element in the list.- Parameters:
element
- the reference to the previous element in the list.
-