2324252627282930
} if( null != workerThread ) { // Already started return; } workerThread = new SubmissionRobotThread(settings); workerThread.start(); }
3132333435363738394041
synchronized public void stop() throws Exception { if( null == workerThread ) { return; } SubmissionRobotThread thread = workerThread; workerThread = null; thread.shutdown(); thread.join(); }
424344454647484950515253
synchronized public void stopTimeoutMillis(int millis) throws Exception { if( null == workerThread ) { return; } SubmissionRobotThread thread = workerThread; workerThread = null; thread.shutdown(); thread.join(millis); thread.interrupt(); }