Class MessageReader2

    • Field Detail

      • periodicity

        protected deltix.util.time.Interval periodicity
      • currentEntity

        protected deltix.qsrv.hf.pub.InstrumentKey currentEntity
    • Constructor Detail

      • MessageReader2

        public MessageReader2​(java.io.InputStream in,
                              long inLength,
                              boolean unzip,
                              int bufferSize,
                              TypeLoader bindLoader)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • MessageReader2

        protected MessageReader2​(java.io.InputStream in,
                                 long inLength,
                                 boolean unzip,
                                 int bufferSize,
                                 TypeLoader bindLoader,
                                 RecordClassDescriptor[] types)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • MessageReader2

        protected MessageReader2​(java.io.InputStream input,
                                 long inLength,
                                 RecordClassDescriptor[] types)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • createRaw

        public static MessageReader2 createRaw​(java.io.File f)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        public static MessageReader2 create​(java.io.File f,
                                            TypeLoader loader)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • create

        public static MessageReader2 create​(java.io.File f,
                                            int bufferSize,
                                            TypeLoader loader)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readVersion

        public static byte readVersion​(java.io.File f)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readHeader

        protected RecordClassDescriptor[] readHeader()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • isAtEnd

        public boolean isAtEnd()
        Specified by:
        isAtEnd in interface deltix.util.concurrent.AbstractCursor
      • next

        public boolean next()
        Specified by:
        next in interface deltix.util.concurrent.AbstractCursor
      • 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
      • getProgress

        public double getProgress()
        Specified by:
        getProgress in interface deltix.data.stream.ConsumableMessageSource<deltix.qsrv.hf.pub.InstrumentMessage>
      • addEntity

        public void addEntity​(deltix.qsrv.hf.pub.InstrumentIdentity id)
        Description copied from interface: EntitySubscriptionController
        Add the specified entity to subscription. The type and symbol are copied from the incoming object, if necessary, so the argument can be re-used after the call. Special note about options: The following fragment will subscribe to specific option contract "DAV 100417P00085000": addEntity(new InstrumentKey(InstrumentType.OPTION, "DAV 100417P00085000")); While the following will subscribe to option root (and you will get all instruments with this root): addEntity(new InstrumentKey(InstrumentType.OPTION, "DAV "));
        Specified by:
        addEntity in interface EntitySubscriptionController
      • addEntities

        public void addEntities​(deltix.qsrv.hf.pub.InstrumentIdentity[] ids,
                                int offset,
                                int length)
        Description copied from interface: EntitySubscriptionController
        Bulk add the specified entities to subscription. The type and symbol are copied from the incoming objects, if necessary, so the arguments can be re-used after the call.
        Specified by:
        addEntities in interface EntitySubscriptionController
      • removeEntity

        public void removeEntity​(deltix.qsrv.hf.pub.InstrumentIdentity id)
        Description copied from interface: EntitySubscriptionController
        Remove the specified entity from subscription. The type and symbol are copied from the incoming object, if necessary, so the argument can be re-used after the call.
        Specified by:
        removeEntity in interface EntitySubscriptionController
      • removeEntities

        public void removeEntities​(deltix.qsrv.hf.pub.InstrumentIdentity[] ids,
                                   int offset,
                                   int length)
        Description copied from interface: EntitySubscriptionController
        Remove the specified entities from subscription. The type and symbol are copied from the incoming objects, if necessary, so the arguments can be re-used after the call.
        Specified by:
        removeEntities in interface EntitySubscriptionController
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException