title: ScheduledExecutorService, how to stop action without stopping executor?
body: <p>I have this code:</p>
  
  <pre><code>ScheduledExecutorService scheduledExecutor;
  .....
  ScheduledFuture&lt;?&gt; result = scheduledExecutor.scheduleWithFixedDelay(
      new SomethingDoer(),0, measurmentPeriodMillis, TimeUnit.MILLISECONDS);
  </code></pre>
  
  <p>After some event I should stop action, which Declared in <code>run()</code> method of the <code>SomethingDoer</code>, which implements <code>Runnable</code>.</p>
  
  <p>How can I do this? I can't shutdown executor, I should only revoke my periodic task. Can I use <code>result.get()</code> for this? And if I can, please tell me how it will work.</p>