Class MpscLinkedArrayQueue<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractQueue<T>
org.jctools.queues.MpscLinkedArrayQueue<T>
- All Implemented Interfaces:
Iterable<T>, Collection<T>, Queue<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Object(package private) MpscLinkedArrayQueue.ARA2(package private) final AtomicLong(package private) int(package private) final int(package private) final AtomicReference<MpscLinkedArrayQueue.ARA2> (package private) final AtomicLong -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
producerIndex
-
producerArray
-
consumerIndex
-
consumerArray
MpscLinkedArrayQueue.ARA2 consumerArray -
consumerOffset
int consumerOffset -
maxOffset
final int maxOffset -
ALLOCATING
-
-
Constructor Details
-
MpscLinkedArrayQueue
public MpscLinkedArrayQueue(int arrayCapacity)
-
-
Method Details
-
offer
-
poll
-
weakPoll
-
peek
-
weakPeek
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein classAbstractCollection<T>
-
iterator
-