title: Spring execute a block of code after a delay
body: <p>I have a Spring boot controller which makes two service calls. The second call should occur only after 10 secs, after getting response from first call.</p>
  
  <pre><code>public SomeResponse myAction() {
      res = serviceCallA();
      waitFor(10) {
          serviceCallB();
      }
      return res;
  }
  </code></pre>
  
  <p>The action doesn't have to wait for the response from serviceCallB(), to return response. Call to serviceCallB() just has to be triggered in separate thread.</p>
  
  <p>Whats the best way to implement this? I need something like a ThreadPoolTaskExecutor, but with a delay.</p>
  
  <p>Sample code would awesome..</p>