Class WaitFreeDrainMpscQueue<T>

java.lang.Object
pl.allegro.tech.hermes.consumers.queue.WaitFreeDrainMpscQueue<T>
All Implemented Interfaces:
MpscQueue<T>

public class WaitFreeDrainMpscQueue<T> extends Object implements MpscQueue<T>
  • Constructor Details

    • WaitFreeDrainMpscQueue

      public WaitFreeDrainMpscQueue(int capacity)
  • Method Details

    • 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>
    • capacity

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