Package deltix.qsrv.hf.tickdb
Class TDBRunner.BaseGenerator<T>
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.TDBRunner.BaseGenerator<T>
-
- All Implemented Interfaces:
deltix.data.stream.MessageSource<T>
,deltix.util.concurrent.AbstractCursor
,deltix.util.lang.Disposable
,java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
TDBRunner.BarsGenerator
,TDBRunner.BBOGenerator
,TDBRunner.TradesGenerator
- Enclosing class:
- TDBRunner
public abstract static class TDBRunner.BaseGenerator<T> extends java.lang.Object implements deltix.data.stream.MessageSource<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.GregorianCalendar
calendar
protected T
current
protected TDBRunner.CycleIterator<java.lang.String>
symbols
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseGenerator(java.util.GregorianCalendar calendar, int interval, java.lang.String... tickers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getActualTime()
T
getMessage()
protected long
getNextTime()
void
setSymbols(java.lang.String... tickers)
-
-
-
Field Detail
-
calendar
protected java.util.GregorianCalendar calendar
-
current
protected T current
-
symbols
protected TDBRunner.CycleIterator<java.lang.String> symbols
-
-
Method Detail
-
getMessage
public T getMessage()
- Specified by:
getMessage
in interfacedeltix.data.stream.MessageSource<T>
-
getNextTime
protected long getNextTime()
-
getActualTime
public long getActualTime()
-
setSymbols
public void setSymbols(java.lang.String... tickers)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacedeltix.util.lang.Disposable
-
-