Class DXDataWriter

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

    public class DXDataWriter
    extends AbstractMessageWriter
    implements deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage>
    • Field Detail

      • buffer

        protected final deltix.util.memory.MemoryDataOutput buffer
    • Constructor Detail

      • DXDataWriter

        public DXDataWriter​(java.io.File file)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • startBlock

        public void startBlock​(java.lang.String key)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • startBlock

        public void startBlock​(java.lang.String key,
                               RecordClassDescriptor... descriptors)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • endBlock

        public void endBlock()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • send

        public void send​(deltix.qsrv.hf.pub.InstrumentMessage msg)
        Specified by:
        send in interface deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage>
      • count

        public long count()
      • 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