<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.gearmanclient.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'gearmanclient.addtaskhighbackground.php',
    1 => 'GearmanClient::addTaskHighBackground',
    2 => 'Add a high priority background task to be run in parallel',
  ),
  'up' => 
  array (
    0 => 'class.gearmanclient.php',
    1 => 'GearmanClient',
  ),
  'prev' => 
  array (
    0 => 'gearmanclient.addtaskhigh.php',
    1 => 'GearmanClient::addTaskHigh',
  ),
  'next' => 
  array (
    0 => 'gearmanclient.addtasklow.php',
    1 => 'GearmanClient::addTaskLow',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/gearman/gearmanclient/addtaskhighbackground.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="gearmanclient.addtaskhighbackground" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">GearmanClient::addTaskHighBackground</h1>
  <p class="verinfo">(PECL gearman &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">GearmanClient::addTaskHighBackground</span> &mdash; <span class="dc-title">Add a high priority background task to be run in parallel</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gearmanclient.addtaskhighbackground-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>GearmanClient::addTaskHighBackground</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$function_name</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.float.php" class="type float">float</a></span></span> <code class="parameter">$workload</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$context</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$unique_key</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="class.gearmantask.php" class="type GearmanTask">GearmanTask</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   Adds a high priority background task to be run in parallel with other tasks.
   Call this method for all the tasks to be run in parallel, then call
   <span class="methodname"><a href="gearmanclient.runtasks.php" class="methodname">GearmanClient::runTasks()</a></span> to perform the work. Tasks with a high
   priority will be selected from the queue before those of normal or low priority.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gearmanclient.addtaskhighbackground-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">function_name</code></dt>
    <dd>
     <span class="simpara">
      ワーカーが実行するために登録した関数。
     </span>
    </dd>
   
   
    <dt><code class="parameter">workload</code></dt>
    <dd>
     <span class="simpara">
      シリアライズしたデータ。
     </span>
    </dd>
   
   
    <dt><code class="parameter">context</code></dt>
    <dd>
     <span class="simpara">
      タスクに関連づけるアプリケーションコンテキスト。
     </span>
    </dd>
   
   
    <dt><code class="parameter">unique_key</code></dt>
    <dd>
     <span class="simpara">
      タスクを特定するために用いる一意な ID。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gearmanclient.addtaskhighbackground-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   A <span class="classname"><a href="class.gearmantask.php" class="classname">GearmanTask</a></span> object or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if the task could not be added.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-gearmanclient.addtaskhighbackground-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="gearmanclient.addtask.php" class="methodname" rel="rdfs-seeAlso">GearmanClient::addTask()</a> - Add a task to be run in parallel</span></li>
   <li><span class="methodname"><a href="gearmanclient.addtaskhigh.php" class="methodname" rel="rdfs-seeAlso">GearmanClient::addTaskHigh()</a> - Add a high priority task to run in parallel</span></li>
   <li><span class="methodname"><a href="gearmanclient.addtasklow.php" class="methodname" rel="rdfs-seeAlso">GearmanClient::addTaskLow()</a> - Add a low priority task to run in parallel</span></li>
   <li><span class="methodname"><a href="gearmanclient.addtaskbackground.php" class="methodname" rel="rdfs-seeAlso">GearmanClient::addTaskBackground()</a> - Add a background task to be run in parallel</span></li>
   <li><span class="methodname"><a href="gearmanclient.addtasklowbackground.php" class="methodname" rel="rdfs-seeAlso">GearmanClient::addTaskLowBackground()</a> - Add a low priority background task to be run in parallel</span></li>
   <li><span class="methodname"><a href="gearmanclient.runtasks.php" class="methodname" rel="rdfs-seeAlso">GearmanClient::runTasks()</a> - Run a list of tasks in parallel</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>