title: Can we create a pool of Spring ScheduledExecutorTask?
body: <p>I'm trying to see if there's a possibility to create a pool of spring ScheduledExecutor. What I need is a set a ScheduledExecutor tasks which will perform certain task in a regular interval. I was trying to use the following way :</p>
  
  <pre><code>&lt;bean id="contentProcessorPool"
      class="org.springframework.scheduling.concurrent.ScheduledExecutorFactoryBean"&gt;
  &lt;property name="poolSize" value="${processor.corepoolsize}"/&gt;
  &lt;property name="continueScheduledExecutionAfterException" value="true"/&gt;
  &lt;property name="scheduledExecutorTasks"&gt;
    &lt;list&gt;
      &lt;ref local="processor"/&gt;
    &lt;/list&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;bean id="processor"
      class="org.springframework.scheduling.concurrent.ScheduledExecutorTask"&gt;
  &lt;property name="delay" value="${processor.polling.delay}"/&gt;
  &lt;property name="period" value="${processor.polling.period}"/&gt;
  
  &lt;property name="runnable"&gt;
    &lt;ref local="contentWorker" /&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code> &lt;bean id="contentWorker" class="com.autodesk.contentextraction.processor.ContentWorker"&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>But this creates one a single ContentWorker instance which keeps running at the specified interval. What I want is a set of ContentWorker to run after a given interval.</p>
  
  <p>Any pointers will be highly appreciated.</p>
  
  <p>Thanks</p>