Class ManualClock

  • All Implemented Interfaces:
    deltix.qsrv.hf.pub.TimeSource

    public class ManualClock
    extends java.lang.Object
    implements deltix.qsrv.hf.pub.TimeSource
    Clock that just show chosen time. To change time you have to do that manually.
    • Constructor Summary

      Constructors 
      Constructor Description
      ManualClock()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void advanceByMillis​(long timeIntervalMs)  
      long currentTimeMillis()  
      void setCurrentTimeMillis​(long currentTimeMillis)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface deltix.qsrv.hf.pub.TimeSource

        currentTimeNanos
    • Constructor Detail

      • ManualClock

        public ManualClock()
    • Method Detail

      • currentTimeMillis

        public long currentTimeMillis()
        Specified by:
        currentTimeMillis in interface deltix.qsrv.hf.pub.TimeSource
      • setCurrentTimeMillis

        public void setCurrentTimeMillis​(long currentTimeMillis)
      • advanceByMillis

        public void advanceByMillis​(long timeIntervalMs)