Created
December 25, 2014 20:17
-
-
Save maxant/73e0d66e80c8345344c4 to your computer and use it in GitHub Desktop.
TradingEngineThread simply delegates to the engine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TradingEngineThread extends Thread { | |
private final TradingEngine engine; | |
public TradingEngineThread(long delay, long timeout, Listener listener) throws NamingException { | |
super("engine-" + ID++); | |
engine = new TradingEngine(delay, timeout, listener); | |
} | |
@Override | |
public void run() { | |
engine.run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment