Class MonitoredMpscQueue<T>

  • All Implemented Interfaces:
    MpscQueue<T>

    public class MonitoredMpscQueue<T>
    extends java.lang.Object
    implements MpscQueue<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      MonitoredMpscQueue​(MpscQueue<T> queue, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics, java.lang.String name)  
    • 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

      • MonitoredMpscQueue

        public MonitoredMpscQueue​(MpscQueue<T> queue,
                                  pl.allegro.tech.hermes.common.metric.HermesMetrics metrics,
                                  java.lang.String name)
    • 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>