Uses of Interface
org.jctools.queues.MessagePassingQueue.Consumer
-
Packages that use MessagePassingQueue.Consumer Package Description org.jctools.queues This package aims to fill a gap in current JDK implementations in offering lock free (wait free where possible) queues for inter-thread message passing with finer grained guarantees and an emphasis on performance.
At the time of writing the only lock free queue available in the JDK isConcurrentLinkedQueuewhich is an unbounded multi-producer, multi-consumer queue which is further encumbered by the need to implement the full range ofQueuemethods.org.jctools.queues.atomic org.jctools.queues.unpadded -
-
Uses of MessagePassingQueue.Consumer in org.jctools.queues
Methods in org.jctools.queues with parameters of type MessagePassingQueue.Consumer Modifier and Type Method Description intMessagePassingQueue. drain(MessagePassingQueue.Consumer<T> c)Remove all available item from the queue and hand to consume.intMessagePassingQueue. drain(MessagePassingQueue.Consumer<T> c, int limit)Remove up to limit elements from the queue and hand to consume.voidMessagePassingQueue. drain(MessagePassingQueue.Consumer<T> c, MessagePassingQueue.WaitStrategy wait, MessagePassingQueue.ExitCondition exit)Remove elements from the queue and hand to consume forever.static <E> intMessagePassingQueueUtil. drain(MessagePassingQueue<E> queue, MessagePassingQueue.Consumer<E> c)static <E> intMessagePassingQueueUtil. drain(MessagePassingQueue<E> queue, MessagePassingQueue.Consumer<E> c, int limit)static <E> voidMessagePassingQueueUtil. drain(MessagePassingQueue<E> queue, MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy wait, MessagePassingQueue.ExitCondition exit)intMpmcArrayQueue. drain(MessagePassingQueue.Consumer<E> c)intMpmcArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)voidMpmcArrayQueue. drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy w, MessagePassingQueue.ExitCondition exit)intMpscArrayQueue. drain(MessagePassingQueue.Consumer<E> c)intMpscArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)voidMpscArrayQueue. drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy w, MessagePassingQueue.ExitCondition exit)intMpscBlockingConsumerArrayQueue. drain(MessagePassingQueue.Consumer<E> c)intMpscBlockingConsumerArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)intMpscBlockingConsumerArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit, long timeout, TimeUnit unit)Remove up to limit elements from the queue and hand to consume, waiting up to the specified wait time if necessary for an element to become available.voidMpscBlockingConsumerArrayQueue. drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy w, MessagePassingQueue.ExitCondition exit)intMpscCompoundQueue. drain(MessagePassingQueue.Consumer<E> c)intMpscCompoundQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)voidMpscCompoundQueue. drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy wait, MessagePassingQueue.ExitCondition exit)intMpscUnboundedArrayQueue. drain(MessagePassingQueue.Consumer<E> c)intMpscUnboundedXaddArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)intSpmcArrayQueue. drain(MessagePassingQueue.Consumer<E> c)intSpmcArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)voidSpmcArrayQueue. drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy w, MessagePassingQueue.ExitCondition exit)intSpscArrayQueue. drain(MessagePassingQueue.Consumer<E> c)intSpscArrayQueue. drain(MessagePassingQueue.Consumer<E> c, int limit)voidSpscArrayQueue. drain(MessagePassingQueue.Consumer<E> c, MessagePassingQueue.WaitStrategy w, MessagePassingQueue.ExitCondition exit) -
Uses of MessagePassingQueue.Consumer in org.jctools.queues.atomic
-
Uses of MessagePassingQueue.Consumer in org.jctools.queues.unpadded
-