Class TimebaseTestUtils.CycleMarketMessageSource

  • All Implemented Interfaces:
    deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>, deltix.util.concurrent.AbstractCursor, deltix.util.lang.Disposable, java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    TimebaseTestUtils

    public static class TimebaseTestUtils.CycleMarketMessageSource
    extends java.lang.Object
    implements deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>
    • Constructor Summary

      Constructors 
      Constructor Description
      CycleMarketMessageSource​(int maxCycleCount, long start, long interval, deltix.timebase.api.MarketMessageType[] types, deltix.qsrv.hf.pub.InstrumentType[] entityTypes, java.lang.String[] symbols)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      deltix.qsrv.hf.pub.InstrumentMessage getMessage()  
      boolean isAtEnd()  
      boolean next()  
      void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CycleMarketMessageSource

        public CycleMarketMessageSource​(int maxCycleCount,
                                        long start,
                                        long interval,
                                        deltix.timebase.api.MarketMessageType[] types,
                                        deltix.qsrv.hf.pub.InstrumentType[] entityTypes,
                                        java.lang.String[] symbols)
    • Method Detail

      • reset

        public void reset()
      • getMessage

        public deltix.qsrv.hf.pub.InstrumentMessage getMessage()
        Specified by:
        getMessage in interface deltix.data.stream.MessageSource<deltix.qsrv.hf.pub.InstrumentMessage>
      • next

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

        public boolean isAtEnd()
        Specified by:
        isAtEnd 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