Package deltix.qsrv.hf.blocks
Class BufferedSorter
- java.lang.Object
-
- deltix.qsrv.hf.blocks.AbstractSorter<TimeIdentity>
-
- deltix.qsrv.hf.blocks.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BufferedSorter.Entry
-
Field Summary
-
Fields inherited from class deltix.qsrv.hf.blocks.AbstractSorter
entry, ignoreErrors, listener, name, prev
-
-
Constructor Summary
Constructors Constructor Description BufferedSorter(BufferedSorter.Entry id, deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage> channel, long maxDiscrepancy)
BufferedSorter(TimeIdentitySet<BufferedSorter.Entry> id, deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage> channel, long maxDiscrepancy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
send(deltix.qsrv.hf.pub.InstrumentMessage msg)
-
Methods inherited from class deltix.qsrv.hf.blocks.AbstractSorter
getChannel, getEntry, getName, onError, setIgnoreErrors, setListener, setName
-
-
-
-
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacedeltix.util.lang.Disposable
- Overrides:
close
in classAbstractSorter<TimeIdentity>
-
-