mirror of
				https://github.com/fofolee/uTools-Manuals.git
				synced 2025-10-25 22:03:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			139 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			139 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!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>MQSeries MQBACK</title>
 | |
|  </head>
 | |
|  <body class="docs"><div id="layout">
 | |
|   <div id="layout-content"><div id="function.mqseries-back" class="refentry">
 | |
|  <div class="refnamediv">
 | |
|   <h1 class="refname">mqseries_back</h1>
 | |
|   <p class="verinfo">(PECL mqseries >= 0.10.0)</p><p class="refpurpose"><span class="refname">mqseries_back</span> — <span class="dc-title">MQSeries MQBACK</span></p>
 | |
| 
 | |
|  </div>
 | |
| 
 | |
|  <div class="refsect1 description" id="refsect1-function.mqseries-back-description">
 | |
|   <h3 class="title">说明</h3>
 | |
|   <div class="methodsynopsis dc-description">
 | |
|    <span class="methodname"><strong>mqseries_back</strong></span>
 | |
|     ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$hconn</code></span>
 | |
|    , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$compCode</code></span>
 | |
|    , <span class="methodparam"><span class="type">resource</span> <code class="parameter reference">&$reason</code></span>
 | |
|    ) : <span class="type"><span class="type void">void</span></span></div>
 | |
| 
 | |
|   <p class="para rdfs-comment">
 | |
|    The
 | |
|    <span class="function"><strong>mqseries_back()</strong></span>
 | |
|    (MQBACK) call indicates to the queue manager that all the message gets and
 | |
|    puts that have occurred since the last syncpoint are to be backed out.
 | |
|    Messages put as part of a unit of work are deleted; messages retrieved as
 | |
|    part of a unit of work are reinstated on the queue.
 | |
|   </p>
 | |
|   <p class="para">
 | |
|    Using
 | |
|    <span class="function"><strong>mqseries_back()</strong></span>
 | |
|    only works in conjunction with
 | |
|    <span class="function"><a href="mqseries_begin.html" class="function">mqseries_begin()</a></span>
 | |
|    and only function when connecting directly to a Queueu manager. Not via the
 | |
|    mqclient interface.
 | |
|   </p>
 | |
|  </div>
 | |
| 
 | |
|  
 | |
|  <div class="refsect1 parameters" id="refsect1-function.mqseries-back-parameters">
 | |
|   <h3 class="title">参数</h3>
 | |
|   <p class="para">
 | |
|    <dl>
 | |
| 
 | |
|     
 | |
|      <dt>
 | |
| 
 | |
|       <code class="parameter">hConn</code>
 | |
|      </dt>
 | |
| 
 | |
|      <dd>
 | |
| 
 | |
|       <p class="para">Connection handle.</p>
 | |
|       <p class="para">This handle represents the connection to the queue manager.</p>
 | |
|      </dd>
 | |
| 
 | |
|     
 | |
|     
 | |
|      <dt>
 | |
| 
 | |
|       <code class="parameter">compCode</code>
 | |
|      </dt>
 | |
| 
 | |
|      <dd>
 | |
| 
 | |
|       <p class="para">Completion code.</p>
 | |
|      </dd>
 | |
| 
 | |
|     
 | |
|     
 | |
|      <dt>
 | |
| 
 | |
|       <code class="parameter">reason</code>
 | |
|      </dt>
 | |
| 
 | |
|      <dd>
 | |
| 
 | |
|       <p class="para">Reason code qualifying the compCode.</p>
 | |
|      </dd>
 | |
| 
 | |
|     
 | |
|    </dl>
 | |
| 
 | |
|   </p>
 | |
|  </div>
 | |
| 
 | |
| 
 | |
|  <div class="refsect1 returnvalues" id="refsect1-function.mqseries-back-returnvalues">
 | |
|   <h3 class="title">返回值</h3>
 | |
|   <p class="para">没有返回值。</p>
 | |
|  </div>
 | |
| 
 | |
| 
 | |
|  <div class="refsect1 examples" id="refsect1-function.mqseries-back-examples">
 | |
|   <h3 class="title">范例</h3>
 | |
|   <p class="para">
 | |
|    <div class="example" id="example-5466">
 | |
|     <p><strong>Example #1 
 | |
|      <span class="function"><strong>mqseries_back()</strong></span>
 | |
|      example
 | |
|     </strong></p>
 | |
|     <div class="example-contents">
 | |
| <div class="phpcode"><pre><span style="color: #000000">
 | |
| <span style="color: #0000BB"><?php<br />    mqseries_back</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #0000BB">$comp_code</span><span style="color: #007700">, </span><span style="color: #0000BB">$reason</span><span style="color: #007700">);<br /><br />    if (</span><span style="color: #0000BB">$comp_code </span><span style="color: #007700">!== </span><span style="color: #0000BB">MQSERIES_MQCC_OK</span><span style="color: #007700">) {<br />        </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"CompCode:%d Reason:%d Text:%s<br>\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">$comp_code</span><span style="color: #007700">, </span><span style="color: #0000BB">$reason</span><span style="color: #007700">, </span><span style="color: #0000BB">mqseries_strerror</span><span style="color: #007700">(</span><span style="color: #0000BB">$reason</span><span style="color: #007700">));<br />    }<br /></span><span style="color: #0000BB">?></span>
 | |
| </span>
 | |
| </pre></div>
 | |
|     </div>
 | |
| 
 | |
|    </div>
 | |
|   </p>
 | |
|  </div>
 | |
| 
 | |
| 
 | |
|  <div class="refsect1 notes" id="refsect1-function.mqseries-back-notes">
 | |
|   <h3 class="title">注释</h3>
 | |
|   <blockquote class="note"><p><strong class="note">Note</strong>: 
 | |
|    <p class="para">
 | |
|     <span class="function"><strong>mqseries_back()</strong></span>
 | |
|     will not function when using MQSeries Client to connect to a Queueu Manager.
 | |
|    </p>
 | |
|   </p></blockquote>
 | |
|  </div>
 | |
| 
 | |
| 
 | |
|  <div class="refsect1 seealso" id="refsect1-function.mqseries-back-seealso">
 | |
|   <h3 class="title">参见</h3>
 | |
|   <p class="para">
 | |
|    <ul class="simplelist">
 | |
|     <li class="member"><span class="function"><a href="mqseries_conn.html" class="function" rel="rdfs-seeAlso">mqseries_conn()</a> - MQSeries MQCONN</span></li>
 | |
|     <li class="member"><span class="function"><a href="mqseries_connx.html" class="function" rel="rdfs-seeAlso">mqseries_connx()</a> - MQSeries MQCONNX</span></li>
 | |
|     <li class="member"><span class="function"><a href="mqseries_begin.html" class="function" rel="rdfs-seeAlso">mqseries_begin()</a> - MQseries MQBEGIN</span></li>
 | |
|    </ul>
 | |
|   </p>
 | |
|  </div>
 | |
| 
 | |
| </div></div></div></body></html> |