Class BufferedSorter

  • All Implemented Interfaces:
    deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage>, deltix.util.lang.Disposable, java.io.Closeable, java.lang.AutoCloseable

    public class BufferedSorter
    extends AbstractSorter<TimeIdentity>
    Provides message processing rule that sorts out-of-sequence messages below in given period of time.
    • Constructor Detail

      • BufferedSorter

        public BufferedSorter​(BufferedSorter.Entry id,
                              deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage> channel,
                              long maxDiscrepancy)
      • BufferedSorter

        public BufferedSorter​(TimeIdentitySet<BufferedSorter.Entry> id,
                              deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage> channel,
                              long maxDiscrepancy)
    • Method Detail

      • send

        public void send​(deltix.qsrv.hf.pub.InstrumentMessage msg)
      • flush

        public void flush()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface deltix.util.lang.Disposable
        Overrides:
        close in class AbstractSorter<TimeIdentity>