title: Spring Batch How to set time interval between each call in a Chunk tasklet
body: <p>Team,</p>
  
  <p>I am doing a technical poc for reading records from a flat file and inserting the data to database.</p>
  
  <p>I am using chunk task and running this job using spring batch admin successfully.</p>
  
  <p>I have to implement the retry policy along with a feature to set the time interval between each retry. I am stuck up with setting the time interval between each retry as chuck doesn't support it directly. Is there any work around for this? </p>
  
  <p>My code is </p>
  
  <pre><code>&lt;batch:job id="importDataJob" job-repository="jobRepository"&gt;
    &lt;batch:step id="importDataStep"&gt;
      &lt;batch:tasklet transaction-manager="transactionManager"&gt;
        &lt;batch:chunk reader="dataReader" writer="dataWriter"  commit-interval="1" retry-limit="3"&gt;
          &lt;batch:retryable-exception-classes&gt;
            &lt;batch:include class="javax.naming.ServiceUnavailableException" /&gt;
          &lt;/batch:retryable-exception-classes&gt;
        &lt;/batch:chunk&gt;
      &lt;/batch:tasklet&gt;
    &lt;/batch:step&gt;
  &lt;/batch:job&gt;
  </code></pre>