Package deltix.qsrv.hf.tickdb.impl
Class TimestampPriorityQueue<T extends deltix.qsrv.hf.pub.InstrumentMessage>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<T>
-
- deltix.qsrv.hf.tickdb.impl.TimestampPriorityQueue<T>
-
- 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
-
-
Constructor Summary
Constructors Constructor Description TimestampPriorityQueue()
TimestampPriorityQueue(int capacity)
-
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.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
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.util.Collection<T extends deltix.qsrv.hf.pub.InstrumentMessage>
- Specified by:
iterator
in interfacejava.lang.Iterable<T extends deltix.qsrv.hf.pub.InstrumentMessage>
- Specified by:
iterator
in classjava.util.AbstractCollection<T extends deltix.qsrv.hf.pub.InstrumentMessage>
-
size
public int size()
-
offer
public boolean offer(T t)
-
poll
public T poll()
-
peek
public T peek()
-
ensureCapacity
public void ensureCapacity(int minCapacity)
-
-