7374757677787980818283
init(); } private void init() { Fuse.light("1s", 1000, new Bomb(){ public void explode(Fuse fuse) { NEXT_VALID_ID += BATCH_SIZE; placeOrder(m_client); } });
8687888990919293949596
private void restart() { for (int i = NEXT_VALID_ID; i < NEXT_VALID_ID + BATCH_SIZE ; i++) { m_client.cancelOrder(i); } Fuse.light("1b", 10 * BATCH_SIZE, new Bomb() { public void explode(Fuse fuse) { init(); } }); }
105106107108109110111112113114115
System.out.println("Averages..."); for (Iterator itr = m_stat.iterator(); itr.hasNext();) { System.out.println(itr.next()); } Fuse.light("1b", 10 * BATCH_SIZE, new Bomb() { public void explode(Fuse fuse) { m_client.eDisconnect(); } }); }