Class TimestampPriorityQueue<T extends deltix.qsrv.hf.pub.InstrumentMessage>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, java.util.Queue<T>

    public class TimestampPriorityQueue<T extends deltix.qsrv.hf.pub.InstrumentMessage>
    extends java.util.AbstractQueue<T>
    Custom PriorityQueue impelemntation, which keeps order of the entries with the same timestamp
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensureCapacity​(int minCapacity)  
      java.util.Iterator<T> iterator()  
      boolean offer​(T t)  
      T peek()  
      T poll()  
      int size()  
      • Methods inherited from class java.util.AbstractQueue

        add, addAll, clear, element, remove
      • Methods inherited from class java.util.AbstractCollection

        contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • TimestampPriorityQueue

        public TimestampPriorityQueue()
      • TimestampPriorityQueue

        public TimestampPriorityQueue​(int capacity)
    • Method Detail

      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.util.Collection<T extends deltix.qsrv.hf.pub.InstrumentMessage>
        Specified by:
        iterator in interface java.lang.Iterable<T extends deltix.qsrv.hf.pub.InstrumentMessage>
        Specified by:
        iterator in class java.util.AbstractCollection<T extends deltix.qsrv.hf.pub.InstrumentMessage>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T extends deltix.qsrv.hf.pub.InstrumentMessage>
        Specified by:
        size in class java.util.AbstractCollection<T extends deltix.qsrv.hf.pub.InstrumentMessage>
      • offer

        public boolean offer​(T t)
      • poll

        public T poll()
      • peek

        public T peek()
      • ensureCapacity

        public void ensureCapacity​(int minCapacity)