Package deltix.qsrv.hf.tickdb.ui.tbshell
Class RealtimePlayerThread
- java.lang.Object
-
- java.lang.Thread
-
- deltix.qsrv.hf.tickdb.ui.tbshell.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
-
Field Summary
Fields Modifier and Type Field Description protected long
count
-
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
-
-
-
-
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) itspeed
-
-
-
Method Detail
-
setMode
public void setMode(RealtimePlayerThread.PlayMode mode)
-
setEndTimeNano
public void setEndTimeNano(long endTimeNano)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
log
protected void log(long mt, long now, RawMessage outMsg)
-
onMessageConversionError
protected void onMessageConversionError(RawMessage msg)
-
-