Class RealtimePlayerThread

  • All Implemented Interfaces:
    java.lang.Runnable

    @ParametersAreNonnullByDefault
    public class RealtimePlayerThread
    extends java.lang.Thread
    Replays messages from specific streams in real-time.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RealtimePlayerThread.PlayMode  
      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long count  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      RealtimePlayerThread​(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> src, deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage> dest, SchemaConverter converter, java.lang.Runnable streamRestarter, double speed)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void log​(long mt, long now, RawMessage outMsg)  
      protected void onMessageConversionError​(RawMessage msg)  
      void run()  
      void setEndTimeNano​(long endTimeNano)  
      void setMode​(RealtimePlayerThread.PlayMode mode)  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • count

        protected long count
    • Constructor Detail

      • RealtimePlayerThread

        public RealtimePlayerThread​(deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage> src,
                                    deltix.data.stream.MessageChannel<deltix.qsrv.hf.pub.InstrumentMessage> dest,
                                    SchemaConverter converter,
                                    @Nullable
                                    java.lang.Runnable streamRestarter,
                                    double speed)
        Parameters:
        streamRestarter - will be executed (if not null) when source stream depletes (ends) to restart (cycle) it
        speed -
    • Method Detail

      • setEndTimeNano

        public void setEndTimeNano​(long endTimeNano)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • log

        protected void log​(long mt,
                           long now,
                           RawMessage outMsg)
      • onMessageConversionError

        protected void onMessageConversionError​(RawMessage msg)