title: java ScheduledThreadPoolExecutor change timing of task
body: <p>I am in the need of changing the executing time of a runnig task for a ScheduledThreadPoolExecutor.</p>
  
  <p>i have something like</p>
  
  <pre><code>executor.schedule(new Runnable() {blablal},10,TimeUnit.SECONDS);
  </code></pre>
  
  <p>during the login phase, i would like to pick up all the tasks for this user and execute them once.</p>
  
  <p>it's not possible to change the execution time  of the ScheduledFuture right?</p>
  
  <p>so my best option it's to do something like</p>
  
  <pre><code>synchronized(list) {
      Runnable a = new Runnable(){aaaa; list.remove(a)};
      executor.schedule(a,10,TimeUnit.SECONDS);
      list.add(a);
  }
  </code></pre>
  
  <p>and at login</p>
  
  <pre><code>synchronize(list) {
      for (Runnable a : list) 
          a.run();
  }
  </code></pre>
  
  <p>am i right?</p>
  
  <p>there aren't any other better options, so i can avoid all this synchronization? </p>
  
  <p>maybe a direct way to change the timeout of a ScheduledFuture</p>