Skip to content

Instantly share code, notes, and snippets.

@maxant
Created December 25, 2014 20:17
Show Gist options
  • Save maxant/73e0d66e80c8345344c4 to your computer and use it in GitHub Desktop.
Save maxant/73e0d66e80c8345344c4 to your computer and use it in GitHub Desktop.
TradingEngineThread simply delegates to the engine.
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