Class WaitFreeDrainMpscQueue<T>

  • All Implemented Interfaces:
    MpscQueue<T>

    public class WaitFreeDrainMpscQueue<T>
    extends java.lang.Object
    implements MpscQueue<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int capacity()  
      void drain​(org.jctools.queues.MessagePassingQueue.Consumer<T> consumer)  
      boolean offer​(T element)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaitFreeDrainMpscQueue

        public WaitFreeDrainMpscQueue​(int capacity)
    • Method Detail

      • offer

        public boolean offer​(T element)
        Specified by:
        offer in interface MpscQueue<T>
      • drain

        public void drain​(org.jctools.queues.MessagePassingQueue.Consumer<T> consumer)
        Specified by:
        drain in interface MpscQueue<T>
      • size

        public int size()
        Specified by:
        size in interface MpscQueue<T>