[Index]

throttle


Throttle parallel execution. This will limit the number of jobs running in parallel.


Property Summary

limit The maximum number of simultaneous jobs this throttle will allow.
original The ExecuutorService to throttle.

Example Summary

Example 1 Throttling parallel execution.

Property Detail

limit

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredYes.

The maximum number of simultaneous jobs this throttle will allow.

original

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo.

The ExecuutorService to throttle. This will be automatically set by Oddjob.


Examples

Example 1

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>


(c) Rob Gordon 2005 - 2013