limit | The maximum number of simultaneous jobs this throttle will allow. |
original | The ExecuutorService to throttle. |
Example 1 | Throttling parallel execution. |
Configured By | ATTRIBUTE |
Access | READ_WRITE |
Required | Yes. |
The maximum number of simultaneous jobs this throttle will allow.
Configured By | ELEMENT |
Access | READ_WRITE |
Required | No. |
The ExecuutorService to throttle. This will be automatically set by Oddjob.
Throttling parallel execution.
<oddjob> <job> <parallel id="parallel"> <executorService> <throttle limit="2"/> </executorService> <jobs> <wait name="Wait 1"/> <wait name="Wait 2"/> <wait name="Wait 3"/> <wait name="Wait 4"/> </jobs> </parallel> </job> </oddjob>