public class ConcurrentLinkedQueue<EntryType>
extends java.util.concurrent.ConcurrentLinkedQueue<EntryType>
shareNodePool(ConcurrentLinkedQueue)
and initNodePool(MemC). Both methods are used only in C language. In Java they are empty.
This class has special constructors, which are oriented to a C-language implementation for embedded systems
with a static memory allocation. In Java the special constructor have not an functionality.
In Java the garbage collected nodes are used in any case.| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ConcurrentLinkedQueue()
Same as original:
Creates a ConcurrentLinkedQueue that is initially empty.
|
ConcurrentLinkedQueue(boolean bInit)
Creates a ConcurrentLinkedQueue without initialization of the nodes.
|
ConcurrentLinkedQueue(java.util.Collection<? extends EntryType> c)
Same as original:
Creates a ConcurrentLinkedQueue
initially containing the elements of the given collection,
added in traversal order of the collection's iterator.
|
ConcurrentLinkedQueue(ConcurrentLinkedQueue<EntryType> srcNodeShare)
Additional for C-Using in embedded systems: Creates an empty LinkedQueue,
but with shared nodes with another LinkedQueue
|
ConcurrentLinkedQueue(MemC memNodes)
Creates an empty LinkedQueue,
but with memory to save nodes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initNodePool(MemC memNodes) |
void |
shareNodePool(ConcurrentLinkedQueue<EntryType> srcNodeShare)
This routine should be invoked after construction, before the first usage.
|
add, addAll, contains, isEmpty, iterator, offer, peek, poll, remove, size, spliterator, toArray, toArraycontainsAll, removeAll, retainAll, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprivate static final long serialVersionUID
public ConcurrentLinkedQueue()
public ConcurrentLinkedQueue(java.util.Collection<? extends EntryType> c)
c - the collection of elements to initially containjava.lang.NullPointerException - if the specified collection or any
of its elements are nullpublic ConcurrentLinkedQueue(boolean bInit)
initNodePool(MemC)
or shareNodePool(ConcurrentLinkedQueue) have to be invoked for this instance
for C-usage.bInit - should be false. It is only a marker. true then initialization is done (? C)public ConcurrentLinkedQueue(MemC memNodes)
public ConcurrentLinkedQueue(ConcurrentLinkedQueue<EntryType> srcNodeShare)
public void shareNodePool(ConcurrentLinkedQueue<EntryType> srcNodeShare)
srcNodeShare - public void initNodePool(MemC memNodes)