Class AbstractMessageWriter

  • Direct Known Subclasses:
    DXDataWriter, MessageWriter2

    public class AbstractMessageWriter
    extends java.lang.Object
    Base class for InstrumentMessages serialization to persistent data storage
    • Constructor Detail

      • AbstractMessageWriter

        public AbstractMessageWriter()
    • Method Detail

      • getTypeIndex

        protected int getTypeIndex​(java.lang.Class<?> cls)
      • encode

        protected void encode​(deltix.qsrv.hf.pub.InstrumentMessage msg,
                              deltix.util.memory.MemoryDataOutput buffer)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeHeader

        protected static void writeHeader​(java.io.OutputStream out,
                                          deltix.util.time.Interval periodicity,
                                          RecordClassDescriptor[] types)
                                   throws java.io.IOException
        Throws:
        java.io.IOException