Package org.jctools.queues
Class MpscLinkedArrayQueue<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<T>
-
- org.jctools.queues.MpscLinkedArrayQueue<T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Queue<T>
public final class MpscLinkedArrayQueue<T> extends AbstractQueue<T>
-
-
Constructor Summary
Constructors Constructor Description MpscLinkedArrayQueue(int arrayCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()Iterator<T>iterator()booleanoffer(T value)Tpeek()Tpoll()intsize()TweakPeek()TweakPoll()-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
-
-
-
Method Detail
-
offer
public boolean offer(T value)
-
poll
public T poll()
-
weakPoll
public T weakPoll()
-
peek
public T peek()
-
weakPeek
public T 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>
-
-