Esempio n. 1
0
  /** The constructor. */
  public Command() {
    commandThread = new CommandThread();
    commandThread.setRunning(true);

    ExecutorService exec = Executors.newSingleThreadExecutor();
    exec.execute(commandThread);
    exec.shutdown();
  }
Esempio n. 2
0
 @Override
 public void dispose() {
   commandThread.setRunning(false);
   super.dispose();
 }