Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 6808

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Run a single high priority task</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gearmanclient.dobackground.html">GearmanClient::doBackground</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gearmanclient.dohighbackground.html">GearmanClient::doHighBackground</a></div>
 <div class="up"><a href="class.gearmanclient.html">GearmanClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="gearmanclient.dohigh" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">GearmanClient::doHigh</h1>
  <p class="verinfo">(PECL gearman &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">GearmanClient::doHigh</span> &mdash; <span class="dc-title">Run a single high priority task</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gearmanclient.dohigh-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>GearmanClient::doHigh</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$function_name</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$workload</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$unique</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Runs a single high priority task and returns a string representation of the result.  It is up to
   the <a href="class.gearmanclient.html" class="classname">GearmanClient</a> and <a href="class.gearmanworker.html" class="classname">GearmanWorker</a> to
   agree on the format of the result.  High priority tasks will get precedence over normal
   and low priority tasks in the job queue.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gearmanclient.dohigh-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">function_name</code></em></span>
     <dd>

      <p class="para">
       A registered function the worker is to execute
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">workload</code></em></span>
     <dd>

      <p class="para">
       Serialized data to be processed
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">unique</code></em></span>
     <dd>

      <p class="para">
       A unique ID used to identify a particular task
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gearmanclient.dohigh-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   A string representing the results of running a task.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-gearmanclient.dohigh-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="methodname"><a href="gearmanclient.donormal.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doNormal()</a> - Run a single task and return a result</span></li>
    <li class="member"> <span class="methodname"><a href="gearmanclient.dolow.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doLow()</a> - Run a single low priority task</span></li>
    <li class="member"> <span class="methodname"><a href="gearmanclient.dobackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doBackground()</a> - Run a task in the background</span></li>
    <li class="member"> <span class="methodname"><a href="gearmanclient.dohighbackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doHighBackground()</a> - Run a high priority task in the background</span></li>
    <li class="member"> <span class="methodname"><a href="gearmanclient.dolowbackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doLowBackground()</a> - Run a low priority task in the background</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gearmanclient.dobackground.html">GearmanClient::doBackground</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gearmanclient.dohighbackground.html">GearmanClient::doHighBackground</a></div>
 <div class="up"><a href="class.gearmanclient.html">GearmanClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>