code: public synchronized void execute(Runnable command) {
          if (active.get()) {
              stop();
              this.command = command;
              start();
          } else {
              this.command = command;
          }
      }
docs: Executes the specified command continuously if the executor is started.
  
  @param command the command to execute.