Top Fields Constructors Methods
io.netty.util.internal.shaded.org.jctools.queues

public Class MpscCompoundQueue<E>

Additional top-level classes in compilation unit: MpscCompoundQueueL0Pad, MpscCompoundQueueColdFields, MpscCompoundQueueMidPad, MpscCompoundQueueConsumerQueueIndex.

extends MpscCompoundQueueConsumerQueueIndex<E>
Class Inheritance
Imports
io.netty.util.internal.shaded.org.jctools.util.RangeUtil, java.util.AbstractQueue, .Iterator

Field Summary

Modifier and TypeField and Description
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
pack-priv byte
Inherited from io.netty.util.internal.shaded.org.jctools.queues.MpscCompoundQueueConsumerQueueIndex:
consumerQueueIndex

Constructor Summary

AccessConstructor and Description
public
MpscCompoundQueue(int capacity)

public
MpscCompoundQueue(int capacity, int queueParallelism)

Method Summary

Modifier and TypeMethod and Description
public int
public int
drain(MessagePassingQueue.Consumer<E> c)

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.drain.

Remove all available item from the queue and hand to consume.
public int
drain(MessagePassingQueue.Consumer<E> c, int limit)

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.drain.

Remove up to limit elements from the queue and hand to consume.
public void
public int
fill(MessagePassingQueue.Supplier<E> s)

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.fill.

Stuff the queue with elements from the supplier.
public int
fill(MessagePassingQueue.Supplier<E> s, int limit)

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.fill.

Stuff the queue with up to limit elements from the supplier.
public void
public Iterator<E>
iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Collection.iterator.

Returns an iterator over the elements in this collection.
public boolean
offer(final E
not null, will throw NPE if it is
e
)

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.offer, java.util.Queue.offer.

Called from a producer thread subject to the restrictions appropriate to the implementation and according to the Queue#offer(Object) interface.
public E
peek()

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.peek, java.util.Queue.peek.

Called from the consumer thread subject to the restrictions appropriate to the implementation and according to the Queue#peek() interface.
public E
poll()

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.poll, java.util.Queue.poll.

Called from the consumer thread subject to the restrictions appropriate to the implementation and according to the Queue#poll() interface.
public boolean
relaxedOffer(E
not null, will throw NPE if it is
e
)

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.relaxedOffer.

Called from a producer thread subject to the restrictions appropriate to the implementation.
public E
relaxedPeek()

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.relaxedPeek.

Called from the consumer thread subject to the restrictions appropriate to the implementation.
public E
relaxedPoll()

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.relaxedPoll.

Called from the consumer thread subject to the restrictions appropriate to the implementation.
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements io.netty.util.internal.shaded.org.jctools.queues.MessagePassingQueue.size, java.util.Collection.size.

This method's accuracy is subject to concurrent modifications happening as the size is estimated and as such is a best effort rather than absolute value.
private boolean
slowOffer(MpscArrayQueue<E>[] queues, int parallelQueuesMask, int start, E e)

public String
toString()

Overrides java.util.AbstractCollection.toString.

Returns a string representation of this collection.