itle="interface in jakarta.enterprise.concurrent">Trigger</a>&nbsp;trigger)</pre>
<div class="block">Creates and executes a task based on a Trigger. The Trigger determines when the task
 should run and how often.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>command</code> - the task to execute.</dd>
<dd><code>trigger</code> - the trigger that determines when the task should fire.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Future representing pending completion