Is there a alternative to Thread.sleep in java
<p>Here is my code</p>

<pre><code>while (true) {
    try {
        Thread.sleep(5 * 60 * 1000);
        processData();// data processing job
    } catch (InterruptedException e) {
        SystemMessageBillPay.getInstance().writeMessage("ERROR: CEB.run() - " + e.getMessage());
    } catch (NumberFormatException e) {
        SystemMessageBillPay.getInstance().writeMessage("ERROR: CEB.run() - " + e.getMessage());
    }
}
</code></pre>

<p>to this </p>

<blockquote>
  <p>"Thread.sleep(5 * 60 * 1000);"</p>
</blockquote>

<p>code inspector give warning </p>

<blockquote>
  <p>"Invoking Thread.sleep in loop can cause performance problems"</p>
</blockquote>

<p>What should be the code to prevent this warning</p>